#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
 

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

Definition at line 36 of file StatCounters.h.

Member Data Documentation

int StatCounters::aborted_requests = 0

Definition at line 152 of file StatCounters.h.

Referenced by StoreEntry::abort(), and GetCountersStats().

int StatCounters::accepts = 0

Definition at line 140 of file StatCounters.h.

int StatCounters::binds = 0

Definition at line 143 of file StatCounters.h.

int StatCounters::clients = 0

Definition at line 39 of file StatCounters.h.

Referenced by clientdbAdd(), clientdbGC(), clientdbStartGC(), GetInfo(), and snmp_prfProtoFn().

int StatCounters::closes = 0

Definition at line 132 of file StatCounters.h.

StatHist StatCounters::comm_dns_incoming
StatHist StatCounters::comm_tcp_incoming
StatHist StatCounters::comm_udp_incoming
int StatCounters::connects = 0

Definition at line 142 of file StatCounters.h.

double StatCounters::cputime = 0.0

Definition at line 121 of file StatCounters.h.

Referenced by GetAvgStat(), GetCountersStats(), and statAvgTick().

int StatCounters::disk_hits = 0

Definition at line 43 of file StatCounters.h.

Referenced by clientUpdateStatCounters(), and statRequestHitDiskRatio().

int StatCounters::errors = 0
int StatCounters::files_cleaned = 0

Definition at line 155 of file StatCounters.h.

Referenced by Fs::Ufs::UFSSwapDir::DirClean(), and GetCountersStats().

CacheDigestGuessStats StatCounters::guess

Definition at line 109 of file StatCounters.h.

Referenced by statPeerSelect().

ByteCounter StatCounters::hit_kbytes_out

Definition at line 47 of file StatCounters.h.

Referenced by ConnStateData::afterClientWrite(), and GetCountersStats().

int StatCounters::hits_recv = 0

Definition at line 73 of file StatCounters.h.

Referenced by icpCount().

int StatCounters::hits_sent = 0

Definition at line 72 of file StatCounters.h.

Referenced by icpCount().

struct { ... } StatCounters::htcp

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

int StatCounters::ins = 0

Definition at line 157 of file StatCounters.h.

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

ByteCounter StatCounters::kbytes_recv
ByteCounter StatCounters::kbytes_sent

Definition at line 76 of file StatCounters.h.

Referenced by GetCountersStats(), icpCount(), peerDigestFetchFinish(), and snmp_prfProtoFn().

int StatCounters::mem_hits = 0

Definition at line 42 of file StatCounters.h.

Referenced by clientUpdateStatCounters(), and statRequestHitMemoryRatio().

ByteCounter StatCounters::memory

Definition at line 105 of file StatCounters.h.

Referenced by GetCountersStats(), and peerDigestSetCBlock().

int StatCounters::msgs_recv = 0

Definition at line 107 of file StatCounters.h.

Referenced by GetCountersStats(), and peerDigestFetchFinish().

int StatCounters::msgs_sent = 0

Definition at line 106 of file StatCounters.h.

Referenced by GetCountersStats(), and peerDigestFetchFinish().

struct { ... } StatCounters::netdb
StatHist StatCounters::on_xition_count

Definition at line 111 of file StatCounters.h.

Referenced by CacheDigest::add(), and statCountersInitSpecial().

int StatCounters::opens = 0

Definition at line 131 of file StatCounters.h.

int StatCounters::outs = 0

Definition at line 156 of file StatCounters.h.

Referenced by GetCountersStats(), and storeSwapOutFileClosed().

int StatCounters::page_faults = 0

Definition at line 117 of file StatCounters.h.

Referenced by GetCountersStats(), and statAvgTick().

int StatCounters::pkts_recv = 0

Definition at line 69 of file StatCounters.h.

Referenced by GetCountersStats(), GetInfo(), htcpRecv(), icpCount(), and snmp_prfProtoFn().

int StatCounters::pkts_sent = 0

Definition at line 66 of file StatCounters.h.

Referenced by GetCountersStats(), GetInfo(), htcpSend(), icpCount(), and snmp_prfProtoFn().

ByteCounter StatCounters::q_kbytes_recv

Definition at line 80 of file StatCounters.h.

Referenced by GetCountersStats(), and icpCount().

ByteCounter StatCounters::q_kbytes_sent

Definition at line 77 of file StatCounters.h.

Referenced by GetCountersStats(), and icpCount().

int StatCounters::queries_recv = 0

Definition at line 70 of file StatCounters.h.

Referenced by GetCountersStats(), and icpCount().

int StatCounters::queries_sent = 0

Definition at line 67 of file StatCounters.h.

Referenced by GetCountersStats(), and icpCount().

int StatCounters::query_timeouts = 0

Definition at line 84 of file StatCounters.h.

Referenced by clientUpdateHierCounters(), and GetCountersStats().

ByteCounter StatCounters::r_kbytes_recv

Definition at line 81 of file StatCounters.h.

Referenced by GetCountersStats(), and icpCount().

ByteCounter StatCounters::r_kbytes_sent

Definition at line 78 of file StatCounters.h.

Referenced by GetCountersStats(), and icpCount().

int StatCounters::reads = 0

Definition at line 133 of file StatCounters.h.

int StatCounters::recvfroms = 0

Definition at line 147 of file StatCounters.h.

int StatCounters::replies_dropped = 0

Definition at line 75 of file StatCounters.h.

Referenced by icpUdpSend().

int StatCounters::replies_queued = 0

Definition at line 74 of file StatCounters.h.

Referenced by GetCountersStats(), GetInfo(), and icpUdpSend().

int StatCounters::replies_recv = 0

Definition at line 71 of file StatCounters.h.

Referenced by GetCountersStats(), and icpCount().

int StatCounters::replies_sent = 0

Definition at line 68 of file StatCounters.h.

Referenced by GetCountersStats(), and icpCount().

StatHist StatCounters::replySvcTime
int StatCounters::seeks = 0

Definition at line 135 of file StatCounters.h.

int StatCounters::select_fds = 0

Definition at line 119 of file StatCounters.h.

Referenced by Comm::DoSelect(), and GetAvgStat().

StatHist StatCounters::select_fds_hist
unsigned long int StatCounters::select_loops = 0

Definition at line 118 of file StatCounters.h.

Referenced by commIncomingStats(), Comm::DoSelect(), GetCountersStats(), and GetInfo().

double StatCounters::select_time = 0.0

Definition at line 120 of file StatCounters.h.

Referenced by GetAvgStat().

int StatCounters::selects = 0
int StatCounters::sendtos = 0

Definition at line 148 of file StatCounters.h.

int StatCounters::sockets = 0

Definition at line 141 of file StatCounters.h.

int StatCounters::times_used = 0

Definition at line 85 of file StatCounters.h.

Referenced by clientUpdateHierCounters(), GetCountersStats(), and statPeerSelect().

struct timeval StatCounters::timestamp

Definition at line 123 of file StatCounters.h.

Referenced by GetAvgStat(), GetCountersStats(), and statAvgTick().

struct { ... } StatCounters::unlink
int StatCounters::unlinks = 0

Definition at line 136 of file StatCounters.h.

int StatCounters::writes = 0

Definition at line 134 of file StatCounters.h.


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors