#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::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.

◆ all

◆ allSvcTime

◆ binds

int StatCounters::binds = 0

Definition at line 143 of file StatCounters.h.

◆ cd

◆ client_http

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

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

◆ cputime

double StatCounters::cputime = 0.0

Definition at line 121 of file StatCounters.h.

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

◆ disk

◆ disk_hits

int StatCounters::disk_hits = 0

Definition at line 43 of file StatCounters.h.

Referenced by clientUpdateStatCounters(), and statRequestHitDiskRatio().

◆ dns

◆ errors

int StatCounters::errors = 0

◆ files_cleaned

int StatCounters::files_cleaned = 0

Definition at line 155 of file StatCounters.h.

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

◆ 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

◆ 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

◆ htcp

struct { ... } StatCounters::htcp

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

◆ http

◆ icp

◆ 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

◆ 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

◆ nearMissSvcTime

◆ netdb

struct { ... } StatCounters::netdb

◆ on_xition_count

StatHist StatCounters::on_xition_count

Definition at line 111 of file StatCounters.h.

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

◆ opens

int StatCounters::opens = 0

Definition at line 131 of file StatCounters.h.

◆ 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

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

◆ recvfroms

int StatCounters::recvfroms = 0

Definition at line 147 of file StatCounters.h.

◆ 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

◆ requests

◆ seeks

int StatCounters::seeks = 0

Definition at line 135 of file StatCounters.h.

◆ select_fds

int StatCounters::select_fds = 0

◆ select_fds_hist

◆ select_loops

unsigned long int StatCounters::select_loops = 0

◆ select_time

double StatCounters::select_time = 0.0

Definition at line 120 of file StatCounters.h.

Referenced by comm_poll_tcp_incoming(), and GetAvgStat().

◆ selects

◆ sendtos

int StatCounters::sendtos = 0

Definition at line 148 of file StatCounters.h.

◆ server

◆ sock

◆ sockets

int StatCounters::sockets = 0

Definition at line 141 of file StatCounters.h.

◆ svcTime

◆ swap

◆ syscalls

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

◆ unlink

struct { ... } StatCounters::unlink

◆ unlinks

int StatCounters::unlinks = 0

Definition at line 136 of file StatCounters.h.

◆ writes

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