cctools
stats.h
1 /*
2 Copyright (C) 2022 The University of Notre Dame
3 This software is distributed under the GNU General Public License.
4 See the file COPYING for details.
5 */
6 
7 #ifndef STATS_H
8 #define STATS_H
9 
10 #include <stdio.h>
11 #include <stdint.h>
12 #include "jx.h"
13 
16 void stats_enable (void);
17 
21 void stats_unset (const char *name);
22 
28 void stats_set (const char *name, int64_t value);
29 
36 void stats_inc (const char *name, int64_t offset);
37 
45 void stats_bin (const char *name, uint64_t value);
46 
52 struct jx *stats_get (void);
53 
54 #endif
jx.h
jx
JX value representing any expression type.
Definition: jx.h:117