![]() |
Storage Engine API
|
Templatized lock statistics management class, which can be specialized with atomic integers for the global stats and with regular integers for the per-locker stats. More...
#include <lock_stats.h>
Templatized lock statistics management class, which can be specialized with atomic integers for the global stats and with regular integers for the per-locker stats.
Classes | |
struct | PerModeLockStatCounters |
Public Types | |
typedef LockStatCounters< CounterType > | LockStatCountersType |
Public Member Functions | |
LockStats () | |
Initializes the locking statistics with zeroes (calls reset). More... | |
void | recordAcquisition (ResourceId resId, LockMode mode) |
void | recordWait (ResourceId resId, LockMode mode) |
void | recordWaitTime (ResourceId resId, LockMode mode, int64_t waitMicros) |
void | recordDeadlock (ResourceId resId, LockMode mode) |
LockStatCountersType & | get (ResourceId resId, LockMode mode) |
template<typename OtherType > | |
void | append (const LockStats< OtherType > &other) |
void | report (BSONObjBuilder *builder) const |
void | reset () |
Private Member Functions | |
void | _report (BSONObjBuilder *builder, const char *sectionName, const PerModeLockStatCounters &stat) const |
Private Attributes | |
PerModeLockStatCounters | _stats [ResourceTypesCount] |
PerModeLockStatCounters | _oplogStats |
Friends | |
template<typename T > | |
class | LockStats |
typedef LockStatCounters<CounterType> mongo::LockStats< CounterType >::LockStatCountersType |
mongo::LockStats< CounterType >::LockStats | ( | ) |
Initializes the locking statistics with zeroes (calls reset).
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void mongo::LockStats< CounterType >::report | ( | BSONObjBuilder * | builder | ) | const |
void mongo::LockStats< CounterType >::reset | ( | ) |
|
private |
|
private |