#include <counters.h>
Public Member Functions | |
AtomicUInt * | getCommand () |
AtomicUInt * | getDelete () |
AtomicUInt * | getGetMore () |
AtomicUInt * | getInsert () |
BSONObj & | getObj () |
AtomicUInt * | getQuery () |
AtomicUInt * | getUpdate () |
void | gotCommand () |
void | gotDelete () |
void | gotGetMore () |
void | gotInsert () |
void | gotOp (int op, bool isCommand) |
void | gotQuery () |
void | gotUpdate () |
void | incInsertInWriteLock (int n) |
OpCounters () | |
Private Attributes | |
AtomicUInt * | _command |
AtomicUInt * | _delete |
AtomicUInt * | _getmore |
AtomicUInt * | _insert |
BSONObj | _obj |
AtomicUInt * | _query |
AtomicUInt * | _update |
for storing operation counters note: not thread safe. ok with that for speed
Definition at line 30 of file counters.h.
mongo::OpCounters::OpCounters | ( | ) |
AtomicUInt* mongo::OpCounters::getCommand | ( | ) | [inline] |
Definition at line 34 of file counters.h.
AtomicUInt* mongo::OpCounters::getDelete | ( | ) | [inline] |
Definition at line 32 of file counters.h.
AtomicUInt* mongo::OpCounters::getGetMore | ( | ) | [inline] |
Definition at line 33 of file counters.h.
AtomicUInt* mongo::OpCounters::getInsert | ( | ) | [inline] |
Definition at line 29 of file counters.h.
BSONObj& mongo::OpCounters::getObj | ( | ) |
AtomicUInt* mongo::OpCounters::getQuery | ( | ) | [inline] |
Definition at line 30 of file counters.h.
AtomicUInt* mongo::OpCounters::getUpdate | ( | ) | [inline] |
Definition at line 31 of file counters.h.
void mongo::OpCounters::gotCommand | ( | ) | [inline] |
Definition at line 42 of file counters.h.
void mongo::OpCounters::gotDelete | ( | ) | [inline] |
Definition at line 40 of file counters.h.
void mongo::OpCounters::gotGetMore | ( | ) | [inline] |
Definition at line 41 of file counters.h.
void mongo::OpCounters::gotInsert | ( | ) | [inline] |
Definition at line 37 of file counters.h.
void mongo::OpCounters::gotOp | ( | int | op, | |
bool | isCommand | |||
) |
void mongo::OpCounters::gotQuery | ( | ) | [inline] |
Definition at line 38 of file counters.h.
void mongo::OpCounters::gotUpdate | ( | ) | [inline] |
Definition at line 39 of file counters.h.
void mongo::OpCounters::incInsertInWriteLock | ( | int | n | ) | [inline] |
Definition at line 36 of file counters.h.
AtomicUInt* mongo::OpCounters::_command [private] |
Definition at line 58 of file counters.h.
AtomicUInt* mongo::OpCounters::_delete [private] |
Definition at line 56 of file counters.h.
AtomicUInt* mongo::OpCounters::_getmore [private] |
Definition at line 57 of file counters.h.
AtomicUInt* mongo::OpCounters::_insert [private] |
Definition at line 53 of file counters.h.
BSONObj mongo::OpCounters::_obj [private] |
Definition at line 49 of file counters.h.
AtomicUInt* mongo::OpCounters::_query [private] |
Definition at line 54 of file counters.h.
AtomicUInt* mongo::OpCounters::_update [private] |
Definition at line 55 of file counters.h.