#include <StatCounters.h>
![Collaboration graph](classStatCounters__coll__graph.png)
Public Member Functions | |
StatCounters () | |
Detailed Description
General collection of process-wide statistics.
- Note
- if you add a field to StatCounters which requires any non-trivial initialization or copy you MUST sync statCountersInitSpecial()
Definition at line 34 of file StatCounters.h.
Constructor & Destructor Documentation
◆ StatCounters()
|
inline |
Definition at line 37 of file StatCounters.h.
Member Data Documentation
◆ aborted_requests
int StatCounters::aborted_requests = 0 |
Definition at line 155 of file StatCounters.h.
Referenced by StoreEntry::abort(), and GetCountersStats().
◆ accepts
int StatCounters::accepts = 0 |
Definition at line 143 of file StatCounters.h.
◆ all
struct { ... } StatCounters::all |
Referenced by Ftp::Client::Client(), Ftp::Client::dataRead(), GetCountersStats(), Http::Tunneler::handleReadyRead(), Http::Tunneler::handleWrittenRequest(), Ftp::Client::readControlReply(), WhoisState::readReply(), HttpStateData::readReply(), TunnelStateData::readServer(), Client::sentRequestBody(), snmp_prfProtoFn(), HttpStateData::start(), statByteHitRatio(), switchToTunnel(), tunnelStart(), Ftp::Client::writeCommandCallback(), TunnelStateData::writeServerDone(), and HttpStateData::wroteLast().
◆ allSvcTime
StatHist StatCounters::allSvcTime |
Definition at line 53 of file StatCounters.h.
Referenced by clientUpdateStatHistCounters(), GetAvgStat(), snmp_prfProtoFn(), statCountersHistograms(), and statPctileSvc().
◆ attempts
uint64_t StatCounters::attempts = 0 |
Definition at line 164 of file StatCounters.h.
Referenced by GetCountersStats(), and Ipc::StoreMap::validateHit().
◆ binds
int StatCounters::binds = 0 |
Definition at line 146 of file StatCounters.h.
◆ cd
struct { ... } StatCounters::cd |
◆ client_http
struct { ... } StatCounters::client_http |
Referenced by ConnStateData::afterClientWrite(), clientdbAdd(), clientdbGC(), clientdbStartGC(), clientUpdateStatCounters(), clientUpdateStatHistCounters(), Server::doClientRead(), SignalEngine::doShutdown(), GetAvgStat(), GetCountersStats(), GetInfo(), TunnelStateData::readClient(), Ftp::Server::readUploadData(), snmp_prfProtoFn(), statByteHitRatio(), statCountersHistograms(), statPctileSvc(), statRequestHitDiskRatio(), statRequestHitMemoryRatio(), statRequestHitRatio(), statSawRecentRequests(), ClientHttpRequest::updateCounters(), and TunnelStateData::writeClientDone().
◆ clients
int StatCounters::clients = 0 |
Definition at line 40 of file StatCounters.h.
Referenced by clientdbAdd(), clientdbGC(), clientdbStartGC(), GetInfo(), and snmp_prfProtoFn().
◆ closes
int StatCounters::closes = 0 |
Definition at line 135 of file StatCounters.h.
◆ comm_dns
Comm::Incoming StatCounters::comm_dns |
Definition at line 126 of file StatCounters.h.
Referenced by comm_poll_dns_incoming(), comm_select_dns_incoming(), and commIncomingStats().
◆ comm_tcp
Comm::Incoming StatCounters::comm_tcp |
Definition at line 127 of file StatCounters.h.
Referenced by comm_poll_tcp_incoming(), comm_select_tcp_incoming(), and commIncomingStats().
◆ comm_udp
Comm::Incoming StatCounters::comm_udp |
Definition at line 128 of file StatCounters.h.
Referenced by comm_poll_udp_incoming(), comm_select_udp_incoming(), and commIncomingStats().
◆ connects
int StatCounters::connects = 0 |
Definition at line 145 of file StatCounters.h.
◆ cputime
double StatCounters::cputime = 0.0 |
Definition at line 122 of file StatCounters.h.
Referenced by GetAvgStat(), GetCountersStats(), and statAvgTick().
◆ disk
struct { ... } StatCounters::disk |
Referenced by DiskdFile::closeDone(), DiskThreadsDiskFile::create(), DiskdFile::createDone(), diskerRead(), diskerWriteAttempts(), diskHandleRead(), diskHandleWrite(), DiskThreadsDiskFile::doClose(), file_close(), file_open(), DiskThreadsDiskFile::open(), DiskdFile::openDone(), DiskThreadsDiskFile::read(), DiskdFile::readDone(), safeunlink(), storeRebuildLoadEntry(), DiskdIOStrategy::unlinkDone(), unlinkdUnlink(), DiskThreadsIOStrategy::unlinkFile(), DiskThreadsDiskFile::write(), and DiskdFile::writeDone().
◆ disk_hits
int StatCounters::disk_hits = 0 |
Definition at line 44 of file StatCounters.h.
Referenced by clientUpdateStatCounters(), and statRequestHitDiskRatio().
◆ dns
struct { ... } StatCounters::dns |
Referenced by fqdncacheHandleReply(), GetAvgStat(), ipcacheHandleReply(), snmp_prfProtoFn(), statCountersHistograms(), and statPctileSvc().
◆ errors
int StatCounters::errors = 0 |
Definition at line 45 of file StatCounters.h.
Referenced by GetCountersStats(), snmp_prfProtoFn(), and ClientHttpRequest::updateCounters().
◆ failures
uint64_t StatCounters::failures = 0 |
Definition at line 168 of file StatCounters.h.
Referenced by GetCountersStats(), and Ipc::StoreMap::validateHit().
◆ files_cleaned
int StatCounters::files_cleaned = 0 |
Definition at line 158 of file StatCounters.h.
Referenced by Fs::Ufs::UFSSwapDir::DirClean(), and GetCountersStats().
◆ ftp
struct { ... } StatCounters::ftp |
◆ guess
CacheDigestGuessStats StatCounters::guess |
Definition at line 110 of file StatCounters.h.
Referenced by statPeerSelect().
◆ hit_kbytes_out
ByteCounter StatCounters::hit_kbytes_out |
Definition at line 48 of file StatCounters.h.
Referenced by ConnStateData::afterClientWrite(), and GetCountersStats().
◆ hits
int StatCounters::hits = 0 |
Definition at line 42 of file StatCounters.h.
Referenced by clientUpdateStatCounters(), GetCountersStats(), snmp_prfProtoFn(), statRequestHitDiskRatio(), statRequestHitMemoryRatio(), and statRequestHitRatio().
◆ hits_recv
int StatCounters::hits_recv = 0 |
Definition at line 74 of file StatCounters.h.
Referenced by icpCount().
◆ hits_sent
int StatCounters::hits_sent = 0 |
Definition at line 73 of file StatCounters.h.
Referenced by icpCount().
◆ hitSvcTime
StatHist StatCounters::hitSvcTime |
Definition at line 52 of file StatCounters.h.
Referenced by clientUpdateStatHistCounters(), GetAvgStat(), snmp_prfProtoFn(), statCountersHistograms(), and statPctileSvc().
◆ hitValidation
struct { ... } StatCounters::hitValidation |
Referenced by GetCountersStats(), and Ipc::StoreMap::validateHit().
◆ htcp
struct { ... } StatCounters::htcp |
Referenced by GetInfo(), htcpRecv(), and htcpSend().
◆ http
struct { ... } StatCounters::http |
◆ icp
struct { ... } StatCounters::icp |
◆ ins
int StatCounters::ins = 0 |
Definition at line 160 of file StatCounters.h.
Referenced by GetCountersStats(), storeSwapInFileClosed(), and storeUnregister().
◆ kbytes_in
ByteCounter StatCounters::kbytes_in |
Definition at line 46 of file StatCounters.h.
Referenced by Server::doClientRead(), GetCountersStats(), TunnelStateData::readClient(), Ftp::Server::readUploadData(), and snmp_prfProtoFn().
◆ kbytes_out
ByteCounter StatCounters::kbytes_out |
Definition at line 47 of file StatCounters.h.
Referenced by ConnStateData::afterClientWrite(), GetCountersStats(), snmp_prfProtoFn(), statByteHitRatio(), and TunnelStateData::writeClientDone().
◆ kbytes_recv
ByteCounter StatCounters::kbytes_recv |
Definition at line 80 of file StatCounters.h.
Referenced by GetCountersStats(), icpCount(), peerDigestFetchSetStats(), snmp_prfProtoFn(), and statByteHitRatio().
◆ kbytes_sent
ByteCounter StatCounters::kbytes_sent |
Definition at line 77 of file StatCounters.h.
Referenced by GetCountersStats(), icpCount(), peerDigestFetchSetStats(), and snmp_prfProtoFn().
◆ mem_hits
int StatCounters::mem_hits = 0 |
Definition at line 43 of file StatCounters.h.
Referenced by clientUpdateStatCounters(), and statRequestHitMemoryRatio().
◆ memory
ByteCounter StatCounters::memory |
Definition at line 106 of file StatCounters.h.
Referenced by GetCountersStats(), and peerDigestSetCBlock().
◆ missSvcTime
StatHist StatCounters::missSvcTime |
Definition at line 49 of file StatCounters.h.
Referenced by clientUpdateStatHistCounters(), GetAvgStat(), snmp_prfProtoFn(), statCountersHistograms(), and statPctileSvc().
◆ msgs_recv
int StatCounters::msgs_recv = 0 |
Definition at line 108 of file StatCounters.h.
Referenced by GetCountersStats(), and peerDigestFetchSetStats().
◆ msgs_sent
int StatCounters::msgs_sent = 0 |
Definition at line 107 of file StatCounters.h.
Referenced by GetCountersStats(), and peerDigestFetchSetStats().
◆ nearHitSvcTime
StatHist StatCounters::nearHitSvcTime |
Definition at line 51 of file StatCounters.h.
Referenced by clientUpdateStatHistCounters(), GetAvgStat(), snmp_prfProtoFn(), statCountersHistograms(), and statPctileSvc().
◆ nearMissSvcTime
StatHist StatCounters::nearMissSvcTime |
Definition at line 50 of file StatCounters.h.
Referenced by clientUpdateStatHistCounters(), GetAvgStat(), snmp_prfProtoFn(), statCountersHistograms(), and statPctileSvc().
◆ netdb
struct { ... } StatCounters::netdb |
Referenced by clientUpdateHierCounters().
◆ on_xition_count
StatHist StatCounters::on_xition_count |
Definition at line 112 of file StatCounters.h.
Referenced by CacheDigest::add().
◆ opens
int StatCounters::opens = 0 |
Definition at line 134 of file StatCounters.h.
◆ other
struct { ... } StatCounters::other |
◆ outs
int StatCounters::outs = 0 |
Definition at line 159 of file StatCounters.h.
Referenced by GetCountersStats(), and storeSwapOutFileClosed().
◆ page_faults
int StatCounters::page_faults = 0 |
Definition at line 118 of file StatCounters.h.
Referenced by GetCountersStats(), and statAvgTick().
◆ pkts_recv
int StatCounters::pkts_recv = 0 |
Definition at line 70 of file StatCounters.h.
Referenced by GetCountersStats(), GetInfo(), htcpRecv(), icpCount(), and snmp_prfProtoFn().
◆ pkts_sent
int StatCounters::pkts_sent = 0 |
Definition at line 67 of file StatCounters.h.
Referenced by GetCountersStats(), GetInfo(), htcpSend(), icpCount(), and snmp_prfProtoFn().
◆ q_kbytes_recv
ByteCounter StatCounters::q_kbytes_recv |
Definition at line 81 of file StatCounters.h.
Referenced by GetCountersStats(), and icpCount().
◆ q_kbytes_sent
ByteCounter StatCounters::q_kbytes_sent |
Definition at line 78 of file StatCounters.h.
Referenced by GetCountersStats(), and icpCount().
◆ queries_recv
int StatCounters::queries_recv = 0 |
Definition at line 71 of file StatCounters.h.
Referenced by GetCountersStats(), and icpCount().
◆ queries_sent
int StatCounters::queries_sent = 0 |
Definition at line 68 of file StatCounters.h.
Referenced by GetCountersStats(), and icpCount().
◆ query_timeouts
int StatCounters::query_timeouts = 0 |
Definition at line 85 of file StatCounters.h.
Referenced by clientUpdateHierCounters(), and GetCountersStats().
◆ querySvcTime
StatHist StatCounters::querySvcTime |
Definition at line 83 of file StatCounters.h.
Referenced by clientUpdateHierCounters(), GetAvgStat(), snmp_prfProtoFn(), statCountersHistograms(), and statPctileSvc().
◆ r_kbytes_recv
ByteCounter StatCounters::r_kbytes_recv |
Definition at line 82 of file StatCounters.h.
Referenced by GetCountersStats(), and icpCount().
◆ r_kbytes_sent
ByteCounter StatCounters::r_kbytes_sent |
Definition at line 79 of file StatCounters.h.
Referenced by GetCountersStats(), and icpCount().
◆ reads
int StatCounters::reads = 0 |
Definition at line 136 of file StatCounters.h.
◆ recvfroms
int StatCounters::recvfroms = 0 |
Definition at line 150 of file StatCounters.h.
◆ refusalsDueToLocking
uint64_t StatCounters::refusalsDueToLocking = 0 |
Definition at line 165 of file StatCounters.h.
Referenced by GetCountersStats(), and Ipc::StoreMap::validateHit().
◆ refusalsDueToTimeLimit
uint64_t StatCounters::refusalsDueToTimeLimit = 0 |
Definition at line 167 of file StatCounters.h.
Referenced by GetCountersStats(), and Ipc::StoreMap::validateHit().
◆ refusalsDueToZeroSize
uint64_t StatCounters::refusalsDueToZeroSize = 0 |
Definition at line 166 of file StatCounters.h.
Referenced by GetCountersStats(), and Ipc::StoreMap::validateHit().
◆ replies_dropped
int StatCounters::replies_dropped = 0 |
Definition at line 76 of file StatCounters.h.
Referenced by icpUdpSend().
◆ replies_queued
int StatCounters::replies_queued = 0 |
Definition at line 75 of file StatCounters.h.
Referenced by GetCountersStats(), GetInfo(), and icpUdpSend().
◆ replies_recv
int StatCounters::replies_recv = 0 |
Definition at line 72 of file StatCounters.h.
Referenced by GetCountersStats(), and icpCount().
◆ replies_sent
int StatCounters::replies_sent = 0 |
Definition at line 69 of file StatCounters.h.
Referenced by GetCountersStats(), and icpCount().
◆ replySvcTime
StatHist StatCounters::replySvcTime |
Definition at line 84 of file StatCounters.h.
Referenced by GetAvgStat(), icpCount(), snmp_prfProtoFn(), and statCountersHistograms().
◆ requests
int StatCounters::requests = 0 |
Definition at line 41 of file StatCounters.h.
Referenced by clientUpdateStatCounters(), SignalEngine::doShutdown(), GetCountersStats(), GetInfo(), snmp_prfProtoFn(), snmp_prfSysFn(), statRequestHitRatio(), statSawRecentRequests(), and unlinkdUnlink().
◆ seeks
int StatCounters::seeks = 0 |
Definition at line 138 of file StatCounters.h.
◆ select_fds
int StatCounters::select_fds = 0 |
Definition at line 120 of file StatCounters.h.
Referenced by Comm::DoSelect(), and GetAvgStat().
◆ select_fds_hist
StatHist StatCounters::select_fds_hist |
Definition at line 130 of file StatCounters.h.
Referenced by commIncomingStats(), Comm::DoSelect(), GetAvgStat(), and statCountersHistograms().
◆ select_loops
unsigned long int StatCounters::select_loops = 0 |
Definition at line 119 of file StatCounters.h.
Referenced by commIncomingStats(), Comm::DoSelect(), GetCountersStats(), and GetInfo().
◆ select_time
double StatCounters::select_time = 0.0 |
Definition at line 121 of file StatCounters.h.
Referenced by GetAvgStat().
◆ selects
int StatCounters::selects = 0 |
Definition at line 153 of file StatCounters.h.
Referenced by comm_check_incoming_poll_handlers(), comm_check_incoming_select_handlers(), and examine_select().
◆ sendtos
int StatCounters::sendtos = 0 |
Definition at line 151 of file StatCounters.h.
◆ server
struct { ... } StatCounters::server |
Referenced by Ftp::Client::Client(), Ftp::Client::dataRead(), GetCountersStats(), Http::Tunneler::handleReadyRead(), Http::Tunneler::handleWrittenRequest(), Ftp::Client::readControlReply(), WhoisState::readReply(), HttpStateData::readReply(), TunnelStateData::readServer(), Client::sentRequestBody(), HttpStateData::sentRequestBody(), Ftp::Client::sentRequestBody(), snmp_prfProtoFn(), HttpStateData::start(), statByteHitRatio(), switchToTunnel(), tunnelStart(), Ftp::Client::writeCommandCallback(), TunnelStateData::writeServerDone(), and HttpStateData::wroteLast().
◆ sock
struct { ... } StatCounters::sock |
◆ sockets
int StatCounters::sockets = 0 |
Definition at line 144 of file StatCounters.h.
◆ svcTime
StatHist StatCounters::svcTime |
Definition at line 99 of file StatCounters.h.
Referenced by fqdncacheHandleReply(), GetAvgStat(), ipcacheHandleReply(), snmp_prfProtoFn(), statCountersHistograms(), and statPctileSvc().
◆ swap
struct { ... } StatCounters::swap |
◆ syscalls
struct { ... } StatCounters::syscalls |
Referenced by Comm::TcpAcceptor::acceptInto(), DiskdFile::closeDone(), comm_check_incoming_poll_handlers(), comm_check_incoming_select_handlers(), comm_close_complete(), comm_connect_addr(), comm_open_uds(), comm_openex(), comm_udp_recvfrom(), comm_udp_sendto(), commBind(), DiskThreadsDiskFile::create(), DiskdFile::createDone(), diskerRead(), diskerWriteAttempts(), diskHandleRead(), diskHandleWrite(), DiskThreadsDiskFile::doClose(), examine_select(), file_close(), file_open(), DiskThreadsDiskFile::open(), DiskdFile::openDone(), DiskThreadsDiskFile::read(), DiskdFile::readDone(), Comm::ReadNow(), safeunlink(), storeRebuildLoadEntry(), DiskdIOStrategy::unlinkDone(), unlinkdUnlink(), DiskThreadsIOStrategy::unlinkFile(), DiskThreadsDiskFile::write(), and DiskdFile::writeDone().
◆ times_used
int StatCounters::times_used = 0 |
Definition at line 86 of file StatCounters.h.
Referenced by clientUpdateHierCounters(), GetCountersStats(), and statPeerSelect().
◆ timestamp
struct timeval StatCounters::timestamp |
Definition at line 124 of file StatCounters.h.
Referenced by GetAvgStat(), GetCountersStats(), and statAvgTick().
◆ unlink
struct { ... } StatCounters::unlink |
Referenced by GetCountersStats(), GetInfo(), snmp_prfSysFn(), and unlinkdUnlink().
◆ unlinks
int StatCounters::unlinks = 0 |
Definition at line 139 of file StatCounters.h.
◆ writes
int StatCounters::writes = 0 |
Definition at line 137 of file StatCounters.h.
The documentation for this class was generated from the following file:
- src/StatCounters.h
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products