mongo::ServiceStats Class Reference

#include <service_stats.h>

List of all members.

Public Member Functions

void logResponse (uint64_t duration, uint64_t bytes)
 ServiceStats ()
string toHTML () const
 ~ServiceStats ()

Private Member Functions

ServiceStats operator= (const ServiceStats &)
 ServiceStats (const ServiceStats &)

Private Attributes

Histogram_spaceHistogram
SpinLock _spinLock
Histogram_timeHistogram

Detailed Description

ServiceStats keeps track of the time a request/response message took inside a service as well as the size of the response generated.

Definition at line 37 of file service_stats.h.


Constructor & Destructor Documentation

mongo::ServiceStats::ServiceStats (  ) 
mongo::ServiceStats::~ServiceStats (  ) 
mongo::ServiceStats::ServiceStats ( const ServiceStats  )  [private]

Member Function Documentation

void mongo::ServiceStats::logResponse ( uint64_t  duration,
uint64_t  bytes 
)

Record the 'duration' in microseconds a request/response message took and the size in bytes of the generated response.

ServiceStats mongo::ServiceStats::operator= ( const ServiceStats  )  [private]
string mongo::ServiceStats::toHTML (  )  const

Render the histogram as string that can be used inside an HTML doc.


Member Data Documentation

Definition at line 58 of file service_stats.h.

Definition at line 56 of file service_stats.h.

Definition at line 57 of file service_stats.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:58 2013