#include <snapshots.h>
Public Member Functions | |
auto_ptr< SnapshotDelta > | computeDelta (int numBack=0) |
const SnapshotData & | getPrev (int numBack=0) |
int | numDeltas () const |
void | outputLockInfoHTML (stringstream &ss) |
Snapshots (int n=100) | |
const SnapshotData * | takeSnapshot () |
Private Attributes | |
int | _loc |
mongo::mutex | _lock |
int | _n |
boost::scoped_array< SnapshotData > | _snapshots |
int | _stored |
Definition at line 83 of file snapshots.h.
mongo::Snapshots::Snapshots | ( | int | n = 100 |
) |
auto_ptr<SnapshotDelta> mongo::Snapshots::computeDelta | ( | int | numBack = 0 |
) |
const SnapshotData& mongo::Snapshots::getPrev | ( | int | numBack = 0 |
) |
int mongo::Snapshots::numDeltas | ( | ) | const [inline] |
Definition at line 89 of file snapshots.h.
void mongo::Snapshots::outputLockInfoHTML | ( | stringstream & | ss | ) |
const SnapshotData* mongo::Snapshots::takeSnapshot | ( | ) |
int mongo::Snapshots::_loc [private] |
Definition at line 100 of file snapshots.h.
mongo::mutex mongo::Snapshots::_lock [private] |
Definition at line 97 of file snapshots.h.
int mongo::Snapshots::_n [private] |
Definition at line 98 of file snapshots.h.
boost::scoped_array<SnapshotData> mongo::Snapshots::_snapshots [private] |
Definition at line 99 of file snapshots.h.
int mongo::Snapshots::_stored [private] |
Definition at line 101 of file snapshots.h.