Storage Engine API
lock_stats.h File Reference
#include "mongo/db/concurrency/lock_manager_defs.h"
#include "mongo/platform/atomic_word.h"

Go to the source code of this file.

Classes

struct  mongo::CounterOps
 Operations for manipulating the lock statistics abstracting whether they are atomic or not. More...
 
struct  mongo::LockStatCounters< CounterType >
 Bundle of locking statistics values. More...
 
class  mongo::LockStats< CounterType >
 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...
 
struct  mongo::LockStats< CounterType >::PerModeLockStatCounters
 

Namespaces

 mongo
 Copyright (C) 2014 MongoDB Inc.
 

Typedefs

typedef LockStats< int64_t > mongo::SingleThreadedLockStats
 
typedef LockStats< AtomicInt64 > mongo::AtomicLockStats
 

Functions

void mongo::reportGlobalLockingStats (SingleThreadedLockStats *outStats)
 Reports instance-wide locking statistics, which can then be converted to BSON or logged. More...
 
void mongo::resetGlobalLockStats ()
 Currently used for testing only. More...