nmdb: Add LevelDB support
[nmdb.git] / nmdb / stats.h
blob92d53d48eb7f220b97e9be68d8bd46f6aee53b05
2 #ifndef _STATS_H
3 #define _STATS_H
5 /* Statistics structure */
6 struct stats {
7 unsigned long cache_get;
8 unsigned long cache_set;
9 unsigned long cache_del;
10 unsigned long cache_cas;
11 unsigned long cache_incr; /* 5 */
13 unsigned long db_get;
14 unsigned long db_set;
15 unsigned long db_del;
16 unsigned long db_cas;
17 unsigned long db_incr; /* 10 */
19 unsigned long cache_hits;
20 unsigned long cache_misses;
22 unsigned long db_hits;
23 unsigned long db_misses;
26 unsigned long msg_tipc; /* 15 */
27 unsigned long msg_tcp;
28 unsigned long msg_udp;
29 unsigned long msg_sctp;
31 unsigned long net_version_mismatch;
32 unsigned long net_broken_req; /* 20 */
33 unsigned long net_unk_req;
34 unsigned long db_firstkey;
35 unsigned long db_nextkey;
38 #define STATS_REPLY_SIZE 23
40 void stats_init(struct stats *s);
42 #endif