cctools
stats.h
1/*
2Copyright (C) 2022 The University of Notre Dame
3This software is distributed under the GNU General Public License.
4See 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
16void stats_enable (void);
17
21void stats_unset (const char *name);
22
28void stats_set (const char *name, int64_t value);
29
36void stats_inc (const char *name, int64_t offset);
37
45void stats_bin (const char *name, uint64_t value);
46
52struct jx *stats_get (void);
53
54#endif
JSON Expressions (JX) library.
JX value representing any expression type.
Definition jx.h:117