mongo::TopOld Class Reference

#include <top.h>

List of all members.

Classes

struct  more
struct  Usage

Public Member Functions

void clientStart (const char *client)
void clientStop ()
void setRead ()
void setWrite ()
 TopOld ()

Static Public Member Functions

static void completeSnapshot ()
static void usage (vector< Usage > &res)

Private Types

typedef
boost::posix_time::time_duration 
D
typedef boost::posix_time::ptime T
typedef boost::tuple< D, int,
int, int > 
UsageData
typedef map< string, UsageDataUsageMap

Private Member Functions

void recordUsage (const string &client, D duration)
void recordUsageForMap (UsageMap &map, const string &client, D duration)

Static Private Member Functions

static T currentTime ()
static void fillParentNamespaces (UsageMap &to, const UsageMap &from)
static void inc (UsageData &to, const UsageData &from)
static bool trivialNs (const char *ns)

Private Attributes

string _current
T _currentStart
bool _read
bool _write

Static Private Attributes

static UsageMap_nextSnapshot
static UsageMap_snapshot
static UsageMap _snapshotA
static UsageMap _snapshotB
static D _snapshotDuration
static T _snapshotStart
static UsageMap _totalUsage
static mongo::mutex topMutex

Detailed Description

Definition at line 92 of file top.h.


Member Typedef Documentation

typedef boost::posix_time::time_duration mongo::TopOld::D [private]

Definition at line 94 of file top.h.

typedef boost::posix_time::ptime mongo::TopOld::T [private]

Definition at line 93 of file top.h.

typedef boost::tuple< D, int, int, int > mongo::TopOld::UsageData [private]

Definition at line 95 of file top.h.

typedef map<string,UsageData> mongo::TopOld::UsageMap [private]

Definition at line 196 of file top.h.


Constructor & Destructor Documentation

mongo::TopOld::TopOld (  )  [inline]

Definition at line 97 of file top.h.


Member Function Documentation

void mongo::TopOld::clientStart ( const char *  client  )  [inline]

Definition at line 101 of file top.h.

void mongo::TopOld::clientStop (  )  [inline]

Definition at line 112 of file top.h.

static void mongo::TopOld::completeSnapshot (  )  [inline, static]

Definition at line 174 of file top.h.

static T mongo::TopOld::currentTime (  )  [inline, static, private]

Definition at line 197 of file top.h.

static void mongo::TopOld::fillParentNamespaces ( UsageMap to,
const UsageMap from 
) [inline, static, private]

Definition at line 213 of file top.h.

static void mongo::TopOld::inc ( UsageData to,
const UsageData from 
) [inline, static, private]

Definition at line 227 of file top.h.

void mongo::TopOld::recordUsage ( const string &  client,
D  duration 
) [inline, private]

Definition at line 200 of file top.h.

void mongo::TopOld::recordUsageForMap ( UsageMap map,
const string &  client,
D  duration 
) [inline, private]

Definition at line 204 of file top.h.

void mongo::TopOld::setRead (  )  [inline]

Definition at line 108 of file top.h.

void mongo::TopOld::setWrite (  )  [inline]

Definition at line 110 of file top.h.

static bool mongo::TopOld::trivialNs ( const char *  ns  )  [inline, static, private]

Definition at line 192 of file top.h.

static void mongo::TopOld::usage ( vector< Usage > &  res  )  [inline, static]

Definition at line 136 of file top.h.


Member Data Documentation

string mongo::TopOld::_current [private]

Definition at line 234 of file top.h.

Definition at line 235 of file top.h.

Definition at line 242 of file top.h.

bool mongo::TopOld::_read [private]

Definition at line 243 of file top.h.

UsageMap& mongo::TopOld::_snapshot [static, private]

Definition at line 241 of file top.h.

Definition at line 239 of file top.h.

Definition at line 240 of file top.h.

Definition at line 237 of file top.h.

T mongo::TopOld::_snapshotStart [static, private]

Definition at line 236 of file top.h.

Definition at line 238 of file top.h.

bool mongo::TopOld::_write [private]

Definition at line 244 of file top.h.

Definition at line 191 of file top.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