summaryrefslogtreecommitdiffstats
path: root/src/global_statistics.h
blob: 56a8118c727fb27f3aea58f7a0ee7f2d6547baa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef NETDATA_GLOBAL_STATISTICS_H
#define NETDATA_GLOBAL_STATISTICS_H 1

// ----------------------------------------------------------------------------
// global statistics

struct global_statistics {
	volatile unsigned long volatile connected_clients;
	volatile unsigned long long volatile web_requests;
	volatile unsigned long long volatile web_usec;
	volatile unsigned long long volatile bytes_received;
	volatile unsigned long long volatile bytes_sent;
	volatile unsigned long long volatile content_size;
	volatile unsigned long long volatile compressed_content_size;
};

extern struct global_statistics global_statistics;

extern void global_statistics_lock(void);
extern void global_statistics_unlock(void);

#endif /* NETDATA_GLOBAL_STATISTICS_H */