StatCounters.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2018 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 STATCOUNTERS_H_
10 #define STATCOUNTERS_H_
11 
12 #include "base/ByteCounter.h"
13 #include "StatHist.h"
14 
15 #if USE_CACHE_DIGESTS
16 
18 {
19 public:
20  int trueHits = 0;
21  int falseHits = 0;
22  int trueMisses = 0;
23  int falseMisses = 0;
24  int closeHits = 0;
25 };
26 #endif
27 
34 {
35 public:
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;
53  } client_http;
54 
55  struct {
56 
57  struct {
58  int requests = 0;
59  int errors = 0;
62  } all, http, ftp, other;
63  } server;
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;
74  int replies_queued = 0;
75  int replies_dropped = 0;
84  int query_timeouts = 0;
85  int times_used = 0;
86  } icp;
87 
88  struct {
89  int pkts_sent = 0;
90  int pkts_recv = 0;
91  } htcp;
92 
93  struct {
94  int requests = 0;
95  } unlink;
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;
116  } netdb;
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;
128 
129  struct {
130  struct {
131  int opens = 0;
132  int closes = 0;
133  int reads = 0;
134  int writes = 0;
135  int seeks = 0;
136  int unlinks = 0;
137  } disk;
138 
139  struct {
140  int accepts = 0;
141  int sockets = 0;
142  int connects = 0;
143  int binds = 0;
144  int closes = 0;
145  int reads = 0;
146  int writes = 0;
147  int recvfroms = 0;
148  int sendtos = 0;
149  } sock;
150  int selects = 0;
151  } syscalls;
153 
154  struct {
155  int files_cleaned = 0;
156  int outs = 0;
157  int ins = 0;
158  } swap;
159 };
160 
162 
163 #endif /* STATCOUNTERS_H_ */
164 
struct StatCounters::@129 server
int replies_dropped
Definition: StatCounters.h:75
struct StatCounters::@129::@138 http
StatCounters statCounter
Definition: StatCounters.cc:12
struct StatCounters::@129::@138 other
ByteCounter r_kbytes_recv
Definition: StatCounters.h:81
struct StatCounters::@133 dns
ByteCounter kbytes_recv
Definition: StatCounters.h:79
StatHist comm_tcp_incoming
Definition: StatCounters.h:126
struct StatCounters::@136::@140 sock
struct timeval timestamp
Definition: StatCounters.h:123
ByteCounter r_kbytes_sent
Definition: StatCounters.h:78
struct StatCounters::@128 client_http
ByteCounter hit_kbytes_out
Definition: StatCounters.h:47
counter for accumulating byte values
Definition: ByteCounter.h:13
int aborted_requests
Definition: StatCounters.h:152
ByteCounter memory
Definition: StatCounters.h:105
CacheDigestGuessStats guess
Definition: StatCounters.h:109
ByteCounter kbytes_sent
Definition: StatCounters.h:76
StatHist on_xition_count
Definition: StatCounters.h:111
StatHist svcTime
Definition: StatCounters.h:98
double cputime
Definition: StatCounters.h:121
struct timeval current_time
Definition: stub_time.cc:15
struct StatCounters::@131 htcp
struct StatCounters::@132 unlink
StatHist hitSvcTime
Definition: StatCounters.h:51
ByteCounter kbytes_in
Definition: StatCounters.h:45
struct StatCounters::@137 swap
int replies_queued
Definition: StatCounters.h:74
struct StatCounters::@129::@138 ftp
StatHist replySvcTime
Definition: StatCounters.h:83
struct StatCounters::@136 syscalls
struct StatCounters::@136::@139 disk
double select_time
Definition: StatCounters.h:120
StatHist comm_dns_incoming
Definition: StatCounters.h:125
StatHist select_fds_hist
Definition: StatCounters.h:127
StatHist nearMissSvcTime
Definition: StatCounters.h:49
unsigned long int select_loops
Definition: StatCounters.h:118
StatHist allSvcTime
Definition: StatCounters.h:52
StatHist comm_udp_incoming
Definition: StatCounters.h:124
struct StatCounters::@129::@138 all
StatHist missSvcTime
Definition: StatCounters.h:48
struct StatCounters::@134 cd
struct StatCounters::@135 netdb
struct StatCounters::@130 icp
int query_timeouts
Definition: StatCounters.h:84
ByteCounter q_kbytes_recv
Definition: StatCounters.h:80
StatHist querySvcTime
Definition: StatCounters.h:82
ByteCounter kbytes_out
Definition: StatCounters.h:46
ByteCounter q_kbytes_sent
Definition: StatCounters.h:77
StatHist nearHitSvcTime
Definition: StatCounters.h:50

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors