#include <StatCounters.h>

Collaboration diagram for StatCounters:

Public Member Functions

 StatCounters ()
 

Public Attributes

struct {
   int   clients = 0
 
   int   requests = 0
 
   int   hits = 0
 
   int   mem_hits = 0
 
   int   disk_hits = 0
 
   int   errors = 0
 
   ByteCounter   kbytes_in
 
   ByteCounter   kbytes_out
 
   ByteCounter   hit_kbytes_out
 
   StatHist   missSvcTime
 
   StatHist   nearMissSvcTime
 
   StatHist   nearHitSvcTime
 
   StatHist   hitSvcTime
 
   StatHist   allSvcTime
 
client_http
 
struct {
   struct {
      int   requests = 0
 
      int   errors = 0
 
      ByteCounter   kbytes_in
 
      ByteCounter   kbytes_out
 
   }   all
 
   struct {
      int   requests = 0
 
      int   errors = 0
 
      ByteCounter   kbytes_in
 
      ByteCounter   kbytes_out
 
   }   http
 
   struct {
      int   requests = 0
 
      int   errors = 0
 
      ByteCounter   kbytes_in
 
      ByteCounter   kbytes_out
 
   }   ftp
 
   struct {
      int   requests = 0
 
      int   errors = 0
 
      ByteCounter   kbytes_in
 
      ByteCounter   kbytes_out
 
   }   other
 
server
 
struct {
   int   pkts_sent = 0
 
   int   queries_sent = 0
 
   int   replies_sent = 0
 
   int   pkts_recv = 0
 
   int   queries_recv = 0
 
   int   replies_recv = 0
 
   int   hits_sent = 0
 
   int   hits_recv = 0
 
   int   replies_queued = 0
 
   int   replies_dropped = 0
 
   ByteCounter   kbytes_sent
 
   ByteCounter   q_kbytes_sent
 
   ByteCounter   r_kbytes_sent
 
   ByteCounter   kbytes_recv
 
   ByteCounter   q_kbytes_recv
 
   ByteCounter   r_kbytes_recv
 
   StatHist   querySvcTime
 
   StatHist   replySvcTime
 
   int   query_timeouts = 0
 
   int   times_used = 0
 
icp
 
struct {
   int   pkts_sent = 0
 
   int   pkts_recv = 0
 
htcp
 
struct {
   int   requests = 0
 
unlink
 
struct {
   StatHist   svcTime
 
dns
 
struct {
   int   times_used = 0
 
   ByteCounter   kbytes_sent
 
   ByteCounter   kbytes_recv
 
   ByteCounter   memory
 
   int   msgs_sent = 0
 
   int   msgs_recv = 0
 
   CacheDigestGuessStats   guess
 
   StatHist   on_xition_count
 
cd
 
struct {
   int   times_used = 0
 
netdb
 
int page_faults = 0
 
unsigned long int select_loops = 0
 
int select_fds = 0
 
double select_time = 0.0
 
double cputime = 0.0
 
struct timeval timestamp
 
StatHist comm_udp_incoming
 
StatHist comm_dns_incoming
 
StatHist comm_tcp_incoming
 
StatHist select_fds_hist
 
struct {
   struct {
      int   opens = 0
 
      int   closes = 0
 
      int   reads = 0
 
      int   writes = 0
 
      int   seeks = 0
 
      int   unlinks = 0
 
   }   disk
 
   struct {
      int   accepts = 0
 
      int   sockets = 0
 
      int   connects = 0
 
      int   binds = 0
 
      int   closes = 0
 
      int   reads = 0
 
      int   writes = 0
 
      int   recvfroms = 0
 
      int   sendtos = 0
 
   }   sock
 
   int   selects = 0
 
syscalls
 
int aborted_requests = 0
 
struct {
   int   files_cleaned = 0
 
   int   outs = 0
 
   int   ins = 0
 
swap
 
struct {
   uint64_t   attempts = 0
 
   uint64_t   refusalsDueToLocking = 0
 
   uint64_t   refusalsDueToZeroSize = 0
 
   uint64_t   refusalsDueToTimeLimit = 0
 
   uint64_t   failures = 0
 
hitValidation
 

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()

StatCounters::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().

◆ 

◆ allSvcTime

StatHist StatCounters::allSvcTime

◆ 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().

◆ 

◆ 

◆ 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

◆ comm_dns_incoming

StatHist StatCounters::comm_dns_incoming

◆ comm_tcp_incoming

StatHist StatCounters::comm_tcp_incoming

◆ comm_udp_incoming

StatHist StatCounters::comm_udp_incoming

◆ 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().

◆ 

◆ disk_hits

int StatCounters::disk_hits = 0

Definition at line 43 of file StatCounters.h.

Referenced by clientUpdateStatCounters(), and statRequestHitDiskRatio().

◆ 

◆ errors

int StatCounters::errors = 0

◆ 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().

◆ 

◆ 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

◆ 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

◆ 

struct { ... } StatCounters::hitValidation

◆ 

struct { ... } StatCounters::htcp

Referenced by GetInfo(), htcpRecv(), and htcpSend().

◆ 

◆ 

◆ ins

int StatCounters::ins = 0

Definition at line 157 of file StatCounters.h.

Referenced by GetCountersStats(), storeSwapInFileClosed(), and storeUnregister().

◆ kbytes_in

◆ kbytes_out

◆ kbytes_recv

ByteCounter StatCounters::kbytes_recv

◆ 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

◆ 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

◆ nearMissSvcTime

StatHist StatCounters::nearMissSvcTime

◆ 

struct { ... } StatCounters::netdb

◆ on_xition_count

StatHist StatCounters::on_xition_count

Definition at line 111 of file StatCounters.h.

Referenced by CacheDigest::add().

◆ opens

◆ 

◆ 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

◆ 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

◆ 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

◆ 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

◆ 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

◆ sendtos

int StatCounters::sendtos = 0

Definition at line 148 of file StatCounters.h.

Referenced by comm_udp_sendto().

◆ 

◆ 

◆ sockets

int StatCounters::sockets = 0

Definition at line 141 of file StatCounters.h.

Referenced by comm_open_uds(), and comm_openex().

◆ svcTime

◆ 

◆ 

◆ 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

◆ unlinks

int StatCounters::unlinks = 0

◆ writes

int StatCounters::writes = 0

The documentation for this class was generated from the following file:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors