mongo::Top Class Reference
#include <top.h>
List of all members.
Classes |
struct | CollectionData |
struct | UsageData |
Public Types |
typedef map< string,
CollectionData > | UsageMap |
Public Member Functions |
void | append (BSONObjBuilder &b) |
void | cloneMap (UsageMap &out) const |
void | collectionDropped (const string &ns) |
CollectionData | getGlobalData () const |
void | record (const string &ns, int op, int lockType, long long micros, bool command) |
| Top () |
Static Public Attributes |
static Top | global |
Private Member Functions |
void | _appendStatsEntry (BSONObjBuilder &b, const char *statsName, const UsageData &map) const |
void | _appendToUsageMap (BSONObjBuilder &b, const UsageMap &map) const |
void | _record (CollectionData &c, int op, int lockType, long long micros, bool command) |
Private Attributes |
CollectionData | _global |
string | _lastDropped |
mongo::mutex | _lock |
UsageMap | _usage |
Detailed Description
tracks usage by collection
Definition at line 29 of file top.h.
Member Typedef Documentation
Definition at line 66 of file top.h.
Constructor & Destructor Documentation
mongo::Top::Top |
( |
|
) |
[inline] |
Definition at line 32 of file top.h.
Member Function Documentation
void mongo::Top::_appendStatsEntry |
( |
BSONObjBuilder & |
b, |
|
|
const char * |
statsName, |
|
|
const UsageData & |
map | |
|
) |
| | const [private] |
void mongo::Top::_record |
( |
CollectionData & |
c, |
|
|
int |
op, |
|
|
int |
lockType, |
|
|
long long |
micros, |
|
|
bool |
command | |
|
) |
| | [private] |
void mongo::Top::cloneMap |
( |
UsageMap & |
out |
) |
const |
void mongo::Top::collectionDropped |
( |
const string & |
ns |
) |
|
Definition at line 72 of file top.h.
void mongo::Top::record |
( |
const string & |
ns, |
|
|
int |
op, |
|
|
int |
lockType, |
|
|
long long |
micros, |
|
|
bool |
command | |
|
) |
| | |
Member Data Documentation
Definition at line 84 of file top.h.
Definition at line 86 of file top.h.
Definition at line 83 of file top.h.
Definition at line 85 of file top.h.
Definition at line 76 of file top.h.
The documentation for this class was generated from the following file: