#include <StatCounters.h>
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 33 of file StatCounters.h.
Constructor & Destructor Documentation
◆ StatCounters()
|
inline |
Definition at line 36 of file StatCounters.h.
Member Data Documentation
◆ aborted_requests
int StatCounters::aborted_requests = 0 |
Definition at line 152 of file StatCounters.h.
Referenced by StoreEntry::abort(), and GetCountersStats().
◆ accepts
int StatCounters::accepts = 0 |
Definition at line 140 of file StatCounters.h.
Referenced by Comm::TcpAcceptor::acceptInto().
◆
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 52 of file StatCounters.h.
Referenced by clientUpdateStatHistCounters(), GetAvgStat(), snmp_prfProtoFn(), statCountersHistograms(), and statPctileSvc().
◆ attempts
uint64_t StatCounters::attempts = 0 |
Definition at line 161 of file StatCounters.h.
Referenced by GetCountersStats(), and Ipc::StoreMap::validateHit().
◆ binds
int StatCounters::binds = 0 |
Definition at line 143 of file StatCounters.h.
Referenced by commBind().
◆
struct { ... } StatCounters::cd |
◆
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(), stat5minClientRequests(), statByteHitRatio(), statCountersHistograms(), statPctileSvc(), statRequestHitDiskRatio(), statRequestHitMemoryRatio(), statRequestHitRatio(), ClientHttpRequest::updateCounters(), and TunnelStateData::writeClientDone().
◆ clients
int StatCounters::clients = 0 |
Definition at line 39 of file StatCounters.h.
Referenced by clientdbAdd(), clientdbGC(), clientdbStartGC(), GetInfo(), and snmp_prfProtoFn().
◆ closes
int StatCounters::closes = 0 |
Definition at line 132 of file StatCounters.h.
Referenced by DiskdFile::closeDone(), comm_close_complete(), DiskThreadsDiskFile::doClose(), and file_close().
◆ comm_dns_incoming
StatHist StatCounters::comm_dns_incoming |
Definition at line 125 of file StatCounters.h.
Referenced by comm_poll_dns_incoming(), comm_select_dns_incoming(), and commIncomingStats().
◆ comm_tcp_incoming
StatHist StatCounters::comm_tcp_incoming |
Definition at line 126 of file StatCounters.h.
Referenced by comm_poll_tcp_incoming(), comm_select_tcp_incoming(), and commIncomingStats().
◆ comm_udp_incoming
StatHist StatCounters::comm_udp_incoming |
Definition at line 124 of file StatCounters.h.
Referenced by comm_poll_udp_incoming(), comm_select_udp_incoming(), and commIncomingStats().
◆ connects
int StatCounters::connects = 0 |
Definition at line 142 of file StatCounters.h.
Referenced by comm_connect_addr().
◆ cputime
double StatCounters::cputime = 0.0 |
Definition at line 121 of file StatCounters.h.
Referenced by GetAvgStat(), GetCountersStats(), and statAvgTick().
◆
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 43 of file StatCounters.h.
Referenced by clientUpdateStatCounters(), and statRequestHitDiskRatio().
◆
struct { ... } StatCounters::dns |
Referenced by fqdncacheHandleReply(), GetAvgStat(), ipcacheHandleReply(), snmp_prfProtoFn(), statCountersHistograms(), and statPctileSvc().
◆ errors
int StatCounters::errors = 0 |
Definition at line 44 of file StatCounters.h.
Referenced by GetCountersStats(), snmp_prfProtoFn(), and ClientHttpRequest::updateCounters().
◆ failures
uint64_t StatCounters::failures = 0 |
Definition at line 165 of file StatCounters.h.
Referenced by GetCountersStats(), and Ipc::StoreMap::validateHit().
◆ files_cleaned
int StatCounters::files_cleaned = 0 |
Definition at line 155 of file StatCounters.h.
Referenced by Fs::Ufs::UFSSwapDir::DirClean(), and GetCountersStats().
◆
struct { ... } StatCounters::ftp |
◆ guess
CacheDigestGuessStats StatCounters::guess |
Definition at line 109 of file StatCounters.h.
Referenced by statPeerSelect().
◆ hit_kbytes_out
ByteCounter StatCounters::hit_kbytes_out |
Definition at line 47 of file StatCounters.h.
Referenced by ConnStateData::afterClientWrite(), and GetCountersStats().
◆ hits
int StatCounters::hits = 0 |
Definition at line 41 of file StatCounters.h.
Referenced by clientUpdateStatCounters(), GetCountersStats(), snmp_prfProtoFn(), statRequestHitDiskRatio(), statRequestHitMemoryRatio(), and statRequestHitRatio().
◆ hits_recv
int StatCounters::hits_recv = 0 |
Definition at line 73 of file StatCounters.h.
Referenced by icpCount().
◆ hits_sent
int StatCounters::hits_sent = 0 |
Definition at line 72 of file StatCounters.h.
Referenced by icpCount().
◆ hitSvcTime
StatHist StatCounters::hitSvcTime |
Definition at line 51 of file StatCounters.h.
Referenced by clientUpdateStatHistCounters(), GetAvgStat(), snmp_prfProtoFn(), statCountersHistograms(), and statPctileSvc().
◆
struct { ... } StatCounters::hitValidation |
Referenced by GetCountersStats(), and Ipc::StoreMap::validateHit().
◆
struct { ... } StatCounters::htcp |
Referenced by GetInfo(), htcpRecv(), and htcpSend().
◆
struct { ... } StatCounters::http |
◆
struct { ... } StatCounters::icp |
◆ ins
int StatCounters::ins = 0 |
Definition at line 157 of file StatCounters.h.
Referenced by GetCountersStats(), storeSwapInFileClosed(), and storeUnregister().
◆ kbytes_in
ByteCounter StatCounters::kbytes_in |
Definition at line 45 of file StatCounters.h.
Referenced by Ftp::Client::dataRead(), Server::doClientRead(), GetCountersStats(), Http::Tunneler::handleReadyRead(), TunnelStateData::readClient(), Ftp::Client::readControlReply(), WhoisState::readReply(), HttpStateData::readReply(), TunnelStateData::readServer(), Ftp::Server::readUploadData(), snmp_prfProtoFn(), and statByteHitRatio().
◆ kbytes_out
ByteCounter StatCounters::kbytes_out |
Definition at line 46 of file StatCounters.h.
Referenced by ConnStateData::afterClientWrite(), GetCountersStats(), Http::Tunneler::handleWrittenRequest(), Ftp::Client::sentRequestBody(), HttpStateData::sentRequestBody(), Client::sentRequestBody(), snmp_prfProtoFn(), statByteHitRatio(), TunnelStateData::writeClientDone(), Ftp::Client::writeCommandCallback(), TunnelStateData::writeServerDone(), and HttpStateData::wroteLast().
◆ kbytes_recv
ByteCounter StatCounters::kbytes_recv |
Definition at line 79 of file StatCounters.h.
Referenced by GetCountersStats(), icpCount(), peerDigestFetchFinish(), snmp_prfProtoFn(), and statByteHitRatio().
◆ kbytes_sent
ByteCounter StatCounters::kbytes_sent |
Definition at line 76 of file StatCounters.h.
Referenced by GetCountersStats(), icpCount(), peerDigestFetchFinish(), and snmp_prfProtoFn().
◆ mem_hits
int StatCounters::mem_hits = 0 |
Definition at line 42 of file StatCounters.h.
Referenced by clientUpdateStatCounters(), and statRequestHitMemoryRatio().
◆ memory
ByteCounter StatCounters::memory |
Definition at line 105 of file StatCounters.h.
Referenced by GetCountersStats(), and peerDigestSetCBlock().
◆ missSvcTime
StatHist StatCounters::missSvcTime |
Definition at line 48 of file StatCounters.h.
Referenced by clientUpdateStatHistCounters(), GetAvgStat(), snmp_prfProtoFn(), statCountersHistograms(), and statPctileSvc().
◆ msgs_recv
int StatCounters::msgs_recv = 0 |
Definition at line 107 of file StatCounters.h.
Referenced by GetCountersStats(), and peerDigestFetchFinish().
◆ msgs_sent
int StatCounters::msgs_sent = 0 |
Definition at line 106 of file StatCounters.h.
Referenced by GetCountersStats(), and peerDigestFetchFinish().
◆ nearHitSvcTime
StatHist StatCounters::nearHitSvcTime |
Definition at line 50 of file StatCounters.h.
Referenced by clientUpdateStatHistCounters(), GetAvgStat(), snmp_prfProtoFn(), statCountersHistograms(), and statPctileSvc().
◆ nearMissSvcTime
StatHist StatCounters::nearMissSvcTime |
Definition at line 49 of file StatCounters.h.
Referenced by clientUpdateStatHistCounters(), GetAvgStat(), snmp_prfProtoFn(), statCountersHistograms(), and statPctileSvc().
◆
struct { ... } StatCounters::netdb |
Referenced by clientUpdateHierCounters().
◆ on_xition_count
StatHist StatCounters::on_xition_count |
Definition at line 111 of file StatCounters.h.
Referenced by CacheDigest::add().
◆ opens
int StatCounters::opens = 0 |
Definition at line 131 of file StatCounters.h.
Referenced by DiskThreadsDiskFile::create(), DiskdFile::createDone(), file_open(), DiskThreadsDiskFile::open(), and DiskdFile::openDone().
◆
struct { ... } StatCounters::other |
◆ outs
int StatCounters::outs = 0 |
Definition at line 156 of file StatCounters.h.
Referenced by GetCountersStats(), and storeSwapOutFileClosed().
◆ page_faults
int StatCounters::page_faults = 0 |
Definition at line 117 of file StatCounters.h.
Referenced by GetCountersStats(), and statAvgTick().
◆ pkts_recv
int StatCounters::pkts_recv = 0 |
Definition at line 69 of file StatCounters.h.
Referenced by GetCountersStats(), GetInfo(), htcpRecv(), icpCount(), and snmp_prfProtoFn().
◆ pkts_sent
int StatCounters::pkts_sent = 0 |
Definition at line 66 of file StatCounters.h.
Referenced by GetCountersStats(), GetInfo(), htcpSend(), icpCount(), and snmp_prfProtoFn().
◆ q_kbytes_recv
ByteCounter StatCounters::q_kbytes_recv |
Definition at line 80 of file StatCounters.h.
Referenced by GetCountersStats(), and icpCount().
◆ q_kbytes_sent
ByteCounter StatCounters::q_kbytes_sent |
Definition at line 77 of file StatCounters.h.
Referenced by GetCountersStats(), and icpCount().
◆ queries_recv
int StatCounters::queries_recv = 0 |
Definition at line 70 of file StatCounters.h.
Referenced by GetCountersStats(), and icpCount().
◆ queries_sent
int StatCounters::queries_sent = 0 |
Definition at line 67 of file StatCounters.h.
Referenced by GetCountersStats(), and icpCount().
◆ query_timeouts
int StatCounters::query_timeouts = 0 |
Definition at line 84 of file StatCounters.h.
Referenced by clientUpdateHierCounters(), and GetCountersStats().
◆ querySvcTime
StatHist StatCounters::querySvcTime |
Definition at line 82 of file StatCounters.h.
Referenced by clientUpdateHierCounters(), GetAvgStat(), snmp_prfProtoFn(), statCountersHistograms(), and statPctileSvc().
◆ r_kbytes_recv
ByteCounter StatCounters::r_kbytes_recv |
Definition at line 81 of file StatCounters.h.
Referenced by GetCountersStats(), and icpCount().
◆ r_kbytes_sent
ByteCounter StatCounters::r_kbytes_sent |
Definition at line 78 of file StatCounters.h.
Referenced by GetCountersStats(), and icpCount().
◆ reads
int StatCounters::reads = 0 |
Definition at line 133 of file StatCounters.h.
Referenced by diskerRead(), diskHandleRead(), DiskThreadsDiskFile::read(), DiskdFile::readDone(), Comm::ReadNow(), and storeRebuildLoadEntry().
◆ recvfroms
int StatCounters::recvfroms = 0 |
Definition at line 147 of file StatCounters.h.
Referenced by comm_udp_recvfrom().
◆ refusalsDueToLocking
uint64_t StatCounters::refusalsDueToLocking = 0 |
Definition at line 162 of file StatCounters.h.
Referenced by GetCountersStats(), and Ipc::StoreMap::validateHit().
◆ refusalsDueToTimeLimit
uint64_t StatCounters::refusalsDueToTimeLimit = 0 |
Definition at line 164 of file StatCounters.h.
Referenced by GetCountersStats(), and Ipc::StoreMap::validateHit().
◆ refusalsDueToZeroSize
uint64_t StatCounters::refusalsDueToZeroSize = 0 |
Definition at line 163 of file StatCounters.h.
Referenced by GetCountersStats(), and Ipc::StoreMap::validateHit().
◆ replies_dropped
int StatCounters::replies_dropped = 0 |
Definition at line 75 of file StatCounters.h.
Referenced by icpUdpSend().
◆ replies_queued
int StatCounters::replies_queued = 0 |
Definition at line 74 of file StatCounters.h.
Referenced by GetCountersStats(), GetInfo(), and icpUdpSend().
◆ replies_recv
int StatCounters::replies_recv = 0 |
Definition at line 71 of file StatCounters.h.
Referenced by GetCountersStats(), and icpCount().
◆ replies_sent
int StatCounters::replies_sent = 0 |
Definition at line 68 of file StatCounters.h.
Referenced by GetCountersStats(), and icpCount().
◆ replySvcTime
StatHist StatCounters::replySvcTime |
Definition at line 83 of file StatCounters.h.
Referenced by GetAvgStat(), icpCount(), snmp_prfProtoFn(), and statCountersHistograms().
◆ requests
int StatCounters::requests = 0 |
Definition at line 40 of file StatCounters.h.
Referenced by Ftp::Client::Client(), clientUpdateStatCounters(), SignalEngine::doShutdown(), GetCountersStats(), GetInfo(), snmp_prfProtoFn(), snmp_prfSysFn(), HttpStateData::start(), stat5minClientRequests(), statRequestHitRatio(), switchToTunnel(), tunnelStart(), and unlinkdUnlink().
◆ seeks
int StatCounters::seeks = 0 |
Definition at line 135 of file StatCounters.h.
Referenced by diskHandleRead().
◆ select_fds
int StatCounters::select_fds = 0 |
Definition at line 119 of file StatCounters.h.
Referenced by Comm::DoSelect(), and GetAvgStat().
◆ select_fds_hist
StatHist StatCounters::select_fds_hist |
Definition at line 127 of file StatCounters.h.
Referenced by commIncomingStats(), Comm::DoSelect(), GetAvgStat(), and statCountersHistograms().
◆ select_loops
unsigned long int StatCounters::select_loops = 0 |
Definition at line 118 of file StatCounters.h.
Referenced by commIncomingStats(), Comm::DoSelect(), GetCountersStats(), and GetInfo().
◆ select_time
double StatCounters::select_time = 0.0 |
Definition at line 120 of file StatCounters.h.
Referenced by GetAvgStat().
◆ selects
int StatCounters::selects = 0 |
Definition at line 150 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 148 of file StatCounters.h.
Referenced by comm_udp_sendto().
◆
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(), Ftp::Client::sentRequestBody(), HttpStateData::sentRequestBody(), Client::sentRequestBody(), snmp_prfProtoFn(), HttpStateData::start(), statByteHitRatio(), switchToTunnel(), tunnelStart(), Ftp::Client::writeCommandCallback(), TunnelStateData::writeServerDone(), and HttpStateData::wroteLast().
◆
struct { ... } StatCounters::sock |
◆ sockets
int StatCounters::sockets = 0 |
Definition at line 141 of file StatCounters.h.
Referenced by comm_open_uds(), and comm_openex().
◆ svcTime
StatHist StatCounters::svcTime |
Definition at line 98 of file StatCounters.h.
Referenced by fqdncacheHandleReply(), GetAvgStat(), ipcacheHandleReply(), snmp_prfProtoFn(), statCountersHistograms(), and statPctileSvc().
◆
struct { ... } StatCounters::swap |
◆
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 85 of file StatCounters.h.
Referenced by clientUpdateHierCounters(), GetCountersStats(), and statPeerSelect().
◆ timestamp
struct timeval StatCounters::timestamp |
Definition at line 123 of file StatCounters.h.
Referenced by GetAvgStat(), GetCountersStats(), and statAvgTick().
◆
struct { ... } StatCounters::unlink |
Referenced by GetCountersStats(), GetInfo(), snmp_prfSysFn(), and unlinkdUnlink().
◆ unlinks
int StatCounters::unlinks = 0 |
Definition at line 136 of file StatCounters.h.
Referenced by safeunlink(), DiskdIOStrategy::unlinkDone(), unlinkdUnlink(), and DiskThreadsIOStrategy::unlinkFile().
◆ writes
int StatCounters::writes = 0 |
Definition at line 134 of file StatCounters.h.
Referenced by diskerWriteAttempts(), diskHandleWrite(), DiskThreadsDiskFile::write(), and DiskdFile::writeDone().
The documentation for this class was generated from the following file:
- src/StatCounters.h