StatCounters Class Reference

#include <StatCounters.h>

Collaboration diagram for StatCounters:

Public Attributes

struct {
   int   clients
 
   int   requests
 
   int   hits
 
   int   mem_hits
 
   int   disk_hits
 
   int   errors
 
   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
 
      int   errors
 
      ByteCounter   kbytes_in
 
      ByteCounter   kbytes_out
 
   }   all
 
   struct {
      int   requests
 
      int   errors
 
      ByteCounter   kbytes_in
 
      ByteCounter   kbytes_out
 
   }   http
 
   struct {
      int   requests
 
      int   errors
 
      ByteCounter   kbytes_in
 
      ByteCounter   kbytes_out
 
   }   ftp
 
   struct {
      int   requests
 
      int   errors
 
      ByteCounter   kbytes_in
 
      ByteCounter   kbytes_out
 
   }   other
 
server
 
struct {
   int   pkts_sent
 
   int   queries_sent
 
   int   replies_sent
 
   int   pkts_recv
 
   int   queries_recv
 
   int   replies_recv
 
   int   hits_sent
 
   int   hits_recv
 
   int   replies_queued
 
   int   replies_dropped
 
   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
 
   int   times_used
 
icp
 
struct {
   int   pkts_sent
 
   int   pkts_recv
 
htcp
 
struct {
   int   requests
 
unlink
 
struct {
   StatHist   svcTime
 
dns
 
struct {
   int   times_used
 
   ByteCounter   kbytes_sent
 
   ByteCounter   kbytes_recv
 
   ByteCounter   memory
 
   int   msgs_sent
 
   int   msgs_recv
 
   CacheDigestGuessStats   guess
 
   StatHist   on_xition_count
 
cd
 
struct {
   int   times_used
 
netdb
 
int page_faults
 
unsigned long int select_loops
 
int select_fds
 
double select_time
 
double cputime
 
struct timeval timestamp
 
StatHist comm_udp_incoming
 
StatHist comm_dns_incoming
 
StatHist comm_tcp_incoming
 
StatHist select_fds_hist
 
struct {
   struct {
      int   opens
 
      int   closes
 
      int   reads
 
      int   writes
 
      int   seeks
 
      int   unlinks
 
   }   disk
 
   struct {
      int   accepts
 
      int   sockets
 
      int   connects
 
      int   binds
 
      int   closes
 
      int   reads
 
      int   writes
 
      int   recvfroms
 
      int   sendtos
 
   }   sock
 
   int   selects
 
syscalls
 
int aborted_requests
 
struct {
   int   files_cleaned
 
   int   outs
 
   int   ins
 
swap
 

Detailed Description

General collection of process-wide statistics.

Note
if you add a field to StatCounters, you MUST sync statCountersInitSpecial, statCountersClean, and statCountersCopy

Definition at line 33 of file StatCounters.h.

Member Data Documentation

int StatCounters::aborted_requests

Definition at line 152 of file StatCounters.h.

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

int StatCounters::accepts

Definition at line 140 of file StatCounters.h.

int StatCounters::binds

Definition at line 143 of file StatCounters.h.

int StatCounters::clients

Definition at line 37 of file StatCounters.h.

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

int StatCounters::closes

Definition at line 132 of file StatCounters.h.

int StatCounters::connects

Definition at line 142 of file StatCounters.h.

double StatCounters::cputime

Definition at line 121 of file StatCounters.h.

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

int StatCounters::disk_hits

Definition at line 41 of file StatCounters.h.

Referenced by clientUpdateStatCounters(), and statRequestHitDiskRatio().

int StatCounters::errors
int StatCounters::files_cleaned

Definition at line 155 of file StatCounters.h.

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

CacheDigestGuessStats StatCounters::guess

Definition at line 108 of file StatCounters.h.

Referenced by statPeerSelect().

ByteCounter StatCounters::hit_kbytes_out

Definition at line 45 of file StatCounters.h.

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

int StatCounters::hits_recv

Definition at line 71 of file StatCounters.h.

Referenced by icpCount().

int StatCounters::hits_sent

Definition at line 70 of file StatCounters.h.

Referenced by icpCount().

struct { ... } StatCounters::htcp

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

int StatCounters::ins

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 74 of file StatCounters.h.

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

int StatCounters::mem_hits

Definition at line 40 of file StatCounters.h.

Referenced by clientUpdateStatCounters(), and statRequestHitMemoryRatio().

ByteCounter StatCounters::memory

Definition at line 103 of file StatCounters.h.

Referenced by GetCountersStats(), and peerDigestSetCBlock().

int StatCounters::msgs_recv

Definition at line 105 of file StatCounters.h.

Referenced by GetCountersStats(), and peerDigestFetchFinish().

int StatCounters::msgs_sent

Definition at line 104 of file StatCounters.h.

Referenced by GetCountersStats(), and peerDigestFetchFinish().

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

Definition at line 131 of file StatCounters.h.

int StatCounters::outs

Definition at line 156 of file StatCounters.h.

Referenced by GetCountersStats(), and storeSwapOutFileClosed().

int StatCounters::page_faults

Definition at line 117 of file StatCounters.h.

Referenced by GetCountersStats(), and statAvgTick().

int StatCounters::pkts_recv

Definition at line 67 of file StatCounters.h.

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

int StatCounters::pkts_sent

Definition at line 64 of file StatCounters.h.

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

ByteCounter StatCounters::q_kbytes_recv

Definition at line 78 of file StatCounters.h.

Referenced by GetCountersStats(), and icpCount().

ByteCounter StatCounters::q_kbytes_sent

Definition at line 75 of file StatCounters.h.

Referenced by GetCountersStats(), and icpCount().

int StatCounters::queries_recv

Definition at line 68 of file StatCounters.h.

Referenced by GetCountersStats(), and icpCount().

int StatCounters::queries_sent

Definition at line 65 of file StatCounters.h.

Referenced by GetCountersStats(), and icpCount().

int StatCounters::query_timeouts

Definition at line 82 of file StatCounters.h.

Referenced by clientUpdateHierCounters(), and GetCountersStats().

ByteCounter StatCounters::r_kbytes_recv

Definition at line 79 of file StatCounters.h.

Referenced by GetCountersStats(), and icpCount().

ByteCounter StatCounters::r_kbytes_sent

Definition at line 76 of file StatCounters.h.

Referenced by GetCountersStats(), and icpCount().

int StatCounters::reads

Definition at line 133 of file StatCounters.h.

int StatCounters::recvfroms

Definition at line 147 of file StatCounters.h.

int StatCounters::replies_dropped

Definition at line 73 of file StatCounters.h.

Referenced by icpUdpSend().

int StatCounters::replies_queued

Definition at line 72 of file StatCounters.h.

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

int StatCounters::replies_recv

Definition at line 69 of file StatCounters.h.

Referenced by GetCountersStats(), and icpCount().

int StatCounters::replies_sent

Definition at line 66 of file StatCounters.h.

Referenced by GetCountersStats(), and icpCount().

int StatCounters::seeks

Definition at line 135 of file StatCounters.h.

int StatCounters::select_fds

Definition at line 119 of file StatCounters.h.

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

unsigned long int StatCounters::select_loops

Definition at line 118 of file StatCounters.h.

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

double StatCounters::select_time

Definition at line 120 of file StatCounters.h.

Referenced by GetAvgStat().

int StatCounters::selects
int StatCounters::sendtos

Definition at line 148 of file StatCounters.h.

int StatCounters::sockets

Definition at line 141 of file StatCounters.h.

int StatCounters::times_used

Definition at line 83 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(), statAvgTick(), and statCountersInit().

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

Definition at line 136 of file StatCounters.h.

int StatCounters::writes

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