Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

SRPC_Call_Stats Class Reference

List of all members.

Public Member Functions

 SRPC_Call_Stats ()
 ~SRPC_Call_Stats ()

Static Public Member Functions

static void getStats (Basics::uint64 &calls, Basics::uint64 &secs, Basics::uint32 &usecs)

Private Member Functions

void accumulateStats (Basics::uint64 &calls, Basics::uint64 &secs, Basics::uint32 &usecs)
void recordCall (Basics::uint32 secs, Basics::uint32 &usecs)

Private Attributes

SRPC_Call_Statsnext
Basics::mutex mu
Basics::uint64 call_count
Basics::uint64 elapsed_secs
Basics::uint32 elapsed_usecs

Static Private Attributes

static Basics::mutex head_mu
static SRPC_Call_Statshead = 0

Friends

class Helper

Classes

class  Helper

Constructor & Destructor Documentation

SRPC_Call_Stats::SRPC_Call_Stats  ) 
 

Definition at line 198 of file VestaSourceServer.C.

References Basics::mutex::lock(), next, and Basics::mutex::unlock().

SRPC_Call_Stats::~SRPC_Call_Stats  ) 
 

Definition at line 208 of file VestaSourceServer.C.


Member Function Documentation

void SRPC_Call_Stats::accumulateStats Basics::uint64 &  calls,
Basics::uint64 &  secs,
Basics::uint32 usecs
[private]
 

Definition at line 136 of file VestaSourceServer.C.

References call_count, elapsed_secs, elapsed_usecs, Basics::mutex::lock(), mu, and Basics::mutex::unlock().

Referenced by getStats().

void SRPC_Call_Stats::getStats Basics::uint64 &  calls,
Basics::uint64 &  secs,
Basics::uint32 usecs
[static]
 

Definition at line 164 of file VestaSourceServer.C.

References accumulateStats(), Basics::mutex::lock(), next, Basics::mutex::unlock(), and USECS_PER_SEC.

void SRPC_Call_Stats::recordCall Basics::uint32  secs,
Basics::uint32 usecs
[private]
 

Definition at line 147 of file VestaSourceServer.C.

References call_count, elapsed_secs, elapsed_usecs, Basics::mutex::lock(), mu, Basics::mutex::unlock(), and USECS_PER_SEC.

Referenced by SRPC_Call_Stats::Helper::~Helper().


Friends And Related Function Documentation

friend class Helper [friend]
 

Definition at line 127 of file VestaSourceServer.C.


Member Data Documentation

Basics::uint64 SRPC_Call_Stats::call_count [private]
 

Definition at line 90 of file VestaSourceServer.C.

Referenced by accumulateStats(), and recordCall().

Basics::uint64 SRPC_Call_Stats::elapsed_secs [private]
 

Definition at line 91 of file VestaSourceServer.C.

Referenced by accumulateStats(), and recordCall().

Basics::uint32 SRPC_Call_Stats::elapsed_usecs [private]
 

Definition at line 92 of file VestaSourceServer.C.

Referenced by accumulateStats(), and recordCall().

SRPC_Call_Stats * SRPC_Call_Stats::head = 0 [static, private]
 

Definition at line 131 of file VestaSourceServer.C.

Basics::mutex SRPC_Call_Stats::head_mu [static, private]
 

Definition at line 130 of file VestaSourceServer.C.

Basics::mutex SRPC_Call_Stats::mu [private]
 

Definition at line 87 of file VestaSourceServer.C.

Referenced by accumulateStats(), and recordCall().

SRPC_Call_Stats* SRPC_Call_Stats::next [private]
 

Definition at line 84 of file VestaSourceServer.C.

Referenced by getStats(), and SRPC_Call_Stats().


The documentation for this class was generated from the following file:
Generated on Mon May 8 00:49:14 2006 for Vesta by  doxygen 1.4.2