Squid Web Cache master
Loading...
Searching...
No Matches
StatCounters.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2025 The Squid Software Foundation and contributors
3 *
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.
7 */
8
9#ifndef SQUID_SRC_STATCOUNTERS_H
10#define SQUID_SRC_STATCOUNTERS_H
11
12#include "base/ByteCounter.h"
13#include "comm/Incoming.h"
14#include "StatHist.h"
15
16#if USE_CACHE_DIGESTS
19{
20public:
21 int trueHits = 0;
22 int falseHits = 0;
23 int trueMisses = 0;
24 int falseMisses = 0;
25};
26#endif
27
34{
35public:
37
38 struct {
39 int clients = 0;
40 int requests = 0;
41 int hits = 0;
42 int mem_hits = 0;
43 int disk_hits = 0;
44 int errors = 0;
54
55 struct {
56
57 struct {
58 int requests = 0;
59 int errors = 0;
64
65 struct {
66 int pkts_sent = 0;
67 int queries_sent = 0;
68 int replies_sent = 0;
69 int pkts_recv = 0;
70 int queries_recv = 0;
71 int replies_recv = 0;
72 int hits_sent = 0;
73 int hits_recv = 0;
85 int times_used = 0;
86 } icp;
87
88 struct {
89 int pkts_sent = 0;
90 int pkts_recv = 0;
92
93 struct {
94 int requests = 0;
96
97 struct {
99 } dns;
100
101 struct {
102 int times_used = 0;
106 int msgs_sent = 0;
107 int msgs_recv = 0;
108#if USE_CACHE_DIGESTS
110#endif
112 } cd;
113
114 struct {
115 int times_used = 0;
117 int page_faults = 0;
118 unsigned long int select_loops = 0;
119 int select_fds = 0;
120 double select_time = 0.0;
121 double cputime = 0.0;
122
123 struct timeval timestamp;
124#if USE_POLL || USE_SELECT
128#endif
130
131 struct {
132 struct {
133 int opens = 0;
134 int closes = 0;
135 int reads = 0;
136 int writes = 0;
137 int seeks = 0;
138 int unlinks = 0;
139 } disk;
140
141 struct {
142 int accepts = 0;
143 int sockets = 0;
144 int connects = 0;
145 int binds = 0;
146 int closes = 0;
147 int reads = 0;
148 int writes = 0;
149 int recvfroms = 0;
150 int sendtos = 0;
151 } sock;
152 int selects = 0;
155
156 struct {
158 int outs = 0;
159 int ins = 0;
161
162 struct {
163 uint64_t attempts = 0;
167 uint64_t failures = 0;
169
170};
171
173
174#endif /* SQUID_SRC_STATCOUNTERS_H */
175
StatCounters statCounter
counter for accumulating byte values
Definition ByteCounter.h:14
ByteCounter kbytes_sent
double select_time
StatHist replySvcTime
StatHist querySvcTime
StatHist select_fds_hist
struct StatCounters::@113 swap
StatHist nearHitSvcTime
CacheDigestGuessStats guess
ByteCounter r_kbytes_sent
StatHist svcTime
ByteCounter kbytes_recv
Comm::Incoming comm_udp
StatHist missSvcTime
unsigned long int select_loops
struct StatCounters::@105::@115 http
StatHist hitSvcTime
uint64_t refusalsDueToZeroSize
uint64_t refusalsDueToTimeLimit
struct StatCounters::@112 syscalls
ByteCounter q_kbytes_sent
StatHist allSvcTime
struct StatCounters::@111 netdb
struct StatCounters::@114 hitValidation
ByteCounter q_kbytes_recv
Comm::Incoming comm_dns
struct StatCounters::@107 htcp
ByteCounter kbytes_out
struct StatCounters::@105::@115 ftp
struct StatCounters::@109 dns
struct StatCounters::@105 server
struct StatCounters::@110 cd
ByteCounter r_kbytes_recv
StatHist nearMissSvcTime
ByteCounter kbytes_in
uint64_t attempts
ByteCounter hit_kbytes_out
ByteCounter memory
Comm::Incoming comm_tcp
StatHist on_xition_count
struct StatCounters::@105::@115 other
struct StatCounters::@108 unlink
struct StatCounters::@106 icp
uint64_t failures
struct StatCounters::@104 client_http
struct StatCounters::@105::@115 all
uint64_t refusalsDueToLocking
struct timeval timestamp
struct timeval current_time
the current UNIX time in timeval {seconds, microseconds} format
Definition gadgets.cc:18