2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 #ifndef STATCOUNTERS_H_
10 #define STATCOUNTERS_H_
12 #include "base/ByteCounter.h"
16 /** statistics for cache digests and other hit "predictors" */
17 class CacheDigestGuessStats
24 int closeHits
; /// \todo: temporary remove it later
28 /** General collection of process-wide statistics.
30 * \note if you add a field to StatCounters,
31 * you MUST sync statCountersInitSpecial, statCountersClean, and statCountersCopy
43 ByteCounter kbytes_in
;
44 ByteCounter kbytes_out
;
45 ByteCounter hit_kbytes_out
;
47 StatHist nearMissSvcTime
;
48 StatHist nearHitSvcTime
;
58 ByteCounter kbytes_in
;
59 ByteCounter kbytes_out
;
60 } all
, http
, ftp
, other
;
74 ByteCounter kbytes_sent
;
75 ByteCounter q_kbytes_sent
;
76 ByteCounter r_kbytes_sent
;
77 ByteCounter kbytes_recv
;
78 ByteCounter q_kbytes_recv
;
79 ByteCounter r_kbytes_recv
;
80 StatHist querySvcTime
;
81 StatHist replySvcTime
;
101 ByteCounter kbytes_sent
;
102 ByteCounter kbytes_recv
;
106 #if USE_CACHE_DIGESTS
108 CacheDigestGuessStats guess
;
111 StatHist on_xition_count
;
118 unsigned long int select_loops
;
123 struct timeval timestamp
;
124 StatHist comm_udp_incoming
;
125 StatHist comm_dns_incoming
;
126 StatHist comm_tcp_incoming
;
127 StatHist select_fds_hist
;
152 int aborted_requests
;
163 extern StatCounters statCounter
;
165 #endif /* STATCOUNTERS_H_ */