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;
21  int falseHits;
24  int closeHits;
25 };
26 #endif
27 
34 {
35 public:
36  struct {
37  int clients;
38  int requests;
39  int hits;
40  int mem_hits;
41  int disk_hits;
42  int errors;
51  } client_http;
52 
53  struct {
54 
55  struct {
56  int requests;
57  int errors;
60  } all, http, ftp, other;
61  } server;
62 
63  struct {
64  int pkts_sent;
67  int pkts_recv;
70  int hits_sent;
71  int hits_recv;
84  } icp;
85 
86  struct {
87  int pkts_sent;
88  int pkts_recv;
89  } htcp;
90 
91  struct {
92  int requests;
93  } unlink;
94 
95  struct {
97  } dns;
98 
99  struct {
100  int times_used;
106 #if USE_CACHE_DIGESTS
107 
109 #endif
110 
112  } cd;
113 
114  struct {
115  int times_used;
116  } netdb;
118  unsigned long int select_loops;
120  double select_time;
121  double cputime;
122 
123  struct timeval timestamp;
128 
129  struct {
130  struct {
131  int opens;
132  int closes;
133  int reads;
134  int writes;
135  int seeks;
136  int unlinks;
137  } disk;
138 
139  struct {
140  int accepts;
141  int sockets;
142  int connects;
143  int binds;
144  int closes;
145  int reads;
146  int writes;
148  int sendtos;
149  } sock;
150  int selects;
151  } syscalls;
153 
154  struct {
156  int outs;
157  int ins;
158  } swap;
159 
160 private:
161 };
162 
164 
165 #endif /* STATCOUNTERS_H_ */
166 
int replies_dropped
Definition: StatCounters.h:73
struct StatCounters::@130::@139 all
struct StatCounters::@134 dns
ByteCounter r_kbytes_recv
Definition: StatCounters.h:79
ByteCounter kbytes_recv
Definition: StatCounters.h:77
StatHist comm_tcp_incoming
Definition: StatCounters.h:126
struct timeval timestamp
Definition: StatCounters.h:123
ByteCounter r_kbytes_sent
Definition: StatCounters.h:76
struct StatCounters::@138 swap
ByteCounter hit_kbytes_out
Definition: StatCounters.h:45
struct StatCounters::@137::@141 sock
struct StatCounters::@130 server
counter for accumulating byte values
Definition: ByteCounter.h:13
int aborted_requests
Definition: StatCounters.h:152
ByteCounter memory
Definition: StatCounters.h:103
CacheDigestGuessStats guess
Definition: StatCounters.h:108
struct StatCounters::@137::@140 disk
ByteCounter kbytes_sent
Definition: StatCounters.h:74
StatHist on_xition_count
Definition: StatCounters.h:111
struct StatCounters::@130::@139 http
StatHist svcTime
Definition: StatCounters.h:96
double cputime
Definition: StatCounters.h:121
StatCounters statCounter
Definition: StatCounters.cc:12
StatHist hitSvcTime
Definition: StatCounters.h:49
ByteCounter kbytes_in
Definition: StatCounters.h:43
struct StatCounters::@135 cd
int replies_queued
Definition: StatCounters.h:72
StatHist replySvcTime
Definition: StatCounters.h:81
struct StatCounters::@133 unlink
struct StatCounters::@136 netdb
double select_time
Definition: StatCounters.h:120
StatHist comm_dns_incoming
Definition: StatCounters.h:125
struct StatCounters::@132 htcp
StatHist select_fds_hist
Definition: StatCounters.h:127
StatHist nearMissSvcTime
Definition: StatCounters.h:47
unsigned long int select_loops
Definition: StatCounters.h:118
struct StatCounters::@130::@139 other
struct StatCounters::@131 icp
StatHist allSvcTime
Definition: StatCounters.h:50
StatHist comm_udp_incoming
Definition: StatCounters.h:124
StatHist missSvcTime
Definition: StatCounters.h:46
struct StatCounters::@130::@139 ftp
struct StatCounters::@129 client_http
int query_timeouts
Definition: StatCounters.h:82
ByteCounter q_kbytes_recv
Definition: StatCounters.h:78
StatHist querySvcTime
Definition: StatCounters.h:80
ByteCounter kbytes_out
Definition: StatCounters.h:44
ByteCounter q_kbytes_sent
Definition: StatCounters.h:75
struct StatCounters::@137 syscalls
StatHist nearHitSvcTime
Definition: StatCounters.h:48

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors