summaryrefslogtreecommitdiff
path: root/src/mongo/db/lockstat.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-06-12 11:29:49 -0400
committerEliot Horowitz <eliot@10gen.com>2012-06-12 11:29:49 -0400
commitd011b4283cbd43d2e45fe062c385baff173a15bb (patch)
treef321fa01666589e322ee59587a31082b7aec31fb /src/mongo/db/lockstat.h
parent32f3e9a4d2f627c56094e6cc1dc3b5ab8cda4171 (diff)
downloadmongo-d011b4283cbd43d2e45fe062c385baff173a15bb.tar.gz
SERVER-4628 - more lock reporting
Diffstat (limited to 'src/mongo/db/lockstat.h')
-rw-r--r--src/mongo/db/lockstat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/lockstat.h b/src/mongo/db/lockstat.h
index ad598341502..c644e3e71d5 100644
--- a/src/mongo/db/lockstat.h
+++ b/src/mongo/db/lockstat.h
@@ -33,6 +33,7 @@ namespace mongo {
void recordLockTimeMicros( char type , long long micros );
BSONObj report() const;
+ void report( StringBuilder& builder ) const;
long long getTimeLocked( char type ) const { return timeLocked[mapNo(type)].load(); }
private:
@@ -44,6 +45,7 @@ namespace mongo {
AtomicInt64 timeLocked[N];
static unsigned mapNo(char type);
+ static char nameFor(unsigned offset);
};
}