2 * Copyright (C) 1996-2014 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_
15 /** statistics for cache digests and other hit "predictors" */
16 class CacheDigestGuessStats
23 int closeHits
; /// \todo: temporary remove it later
27 /** General collection of process-wide statistics.
29 * \note if you add a field to StatCounters,
30 * you MUST sync statCountersInitSpecial, statCountersClean, and statCountersCopy
46 StatHist nearMissSvcTime
;
47 StatHist nearHitSvcTime
;
59 } all
, http
, ftp
, other
;
79 StatHist querySvcTime
;
80 StatHist replySvcTime
;
105 #if USE_CACHE_DIGESTS
107 CacheDigestGuessStats guess
;
110 StatHist on_xition_count
;
117 unsigned long int select_loops
;
122 struct timeval timestamp
;
123 StatHist comm_udp_incoming
;
124 StatHist comm_dns_incoming
;
125 StatHist comm_tcp_incoming
;
126 StatHist select_fds_hist
;
151 int aborted_requests
;
162 extern StatCounters statCounter
;
164 #endif /* STATCOUNTERS_H_ */