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

NFS_Call_Stats Class Reference

#include <nfsStats.H>

List of all members.

Public Member Functions

 NFS_Call_Stats ()
 ~NFS_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

NFS_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 NFS_Call_Statshead = 0

Friends

class Helper

Classes

class  Helper


Constructor & Destructor Documentation

NFS_Call_Stats::NFS_Call_Stats  ) 
 

Definition at line 93 of file nfsStats.C.

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

NFS_Call_Stats::~NFS_Call_Stats  ) 
 

Definition at line 103 of file nfsStats.C.


Member Function Documentation

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

Definition at line 31 of file nfsStats.C.

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

Referenced by getStats().

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

Definition at line 59 of file nfsStats.C.

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

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

Definition at line 42 of file nfsStats.C.

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

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


Friends And Related Function Documentation

friend class Helper [friend]
 

Definition at line 80 of file nfsStats.H.


Member Data Documentation

Basics::uint64 NFS_Call_Stats::call_count [private]
 

Definition at line 46 of file nfsStats.H.

Referenced by accumulateStats(), and recordCall().

Basics::uint64 NFS_Call_Stats::elapsed_secs [private]
 

Definition at line 47 of file nfsStats.H.

Referenced by accumulateStats(), and recordCall().

Basics::uint32 NFS_Call_Stats::elapsed_usecs [private]
 

Definition at line 48 of file nfsStats.H.

Referenced by accumulateStats(), and recordCall().

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

Definition at line 29 of file nfsStats.C.

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

Definition at line 28 of file nfsStats.C.

Basics::mutex NFS_Call_Stats::mu [private]
 

Definition at line 43 of file nfsStats.H.

Referenced by accumulateStats(), and recordCall().

NFS_Call_Stats* NFS_Call_Stats::next [private]
 

Definition at line 40 of file nfsStats.H.

Referenced by getStats(), and NFS_Call_Stats().


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