diff options
Diffstat (limited to 'src/mongo/db/lockstat.h')
-rw-r--r-- | src/mongo/db/lockstat.h | 2 |
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); }; } |