]> arthur.barton.de Git - netdata.git/blob - src/global_statistics.h
added configuration options for controlling web compression level and strategy and...
[netdata.git] / src / global_statistics.h
1 #ifndef NETDATA_GLOBAL_STATISTICS_H
2 #define NETDATA_GLOBAL_STATISTICS_H 1
3
4 // ----------------------------------------------------------------------------
5 // global statistics
6
7 struct global_statistics {
8         volatile unsigned long volatile connected_clients;
9         volatile unsigned long long volatile web_requests;
10         volatile unsigned long long volatile web_usec;
11         volatile unsigned long long volatile bytes_received;
12         volatile unsigned long long volatile bytes_sent;
13         volatile unsigned long long volatile content_size;
14         volatile unsigned long long volatile compressed_content_size;
15 };
16
17 extern struct global_statistics global_statistics;
18
19 extern void global_statistics_lock(void);
20 extern void global_statistics_unlock(void);
21
22 #endif /* NETDATA_GLOBAL_STATISTICS_H */