diff options
author | Eliot Horowitz <eliot@10gen.com> | 2014-11-27 12:48:39 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2014-11-27 12:48:39 -0500 |
commit | 4e53ba220a73a28a9bd50347c66c347ae97e8b11 (patch) | |
tree | a993dcf02f46f4ef41c565a94eebc4f57be32f4c /src/mongo/db/stats/snapshots.h | |
parent | 16a8ef7ad60d498b69bdc0ad5cbca44757d16fd8 (diff) | |
download | mongo-4e53ba220a73a28a9bd50347c66c347ae97e8b11.tar.gz |
SERVER-16342: remove some snapshot global data that doesn't make sense any more
Diffstat (limited to 'src/mongo/db/stats/snapshots.h')
-rw-r--r-- | src/mongo/db/stats/snapshots.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mongo/db/stats/snapshots.h b/src/mongo/db/stats/snapshots.h index 29c8fc5bdfe..006bc523bff 100644 --- a/src/mongo/db/stats/snapshots.h +++ b/src/mongo/db/stats/snapshots.h @@ -49,8 +49,6 @@ namespace mongo { void takeSnapshot(); unsigned long long _created; - Top::CollectionData _globalUsage; - unsigned long long _totalWriteLockedTime; // micros of total time locked Top::UsageMap _usage; friend class SnapshotThread; @@ -73,16 +71,6 @@ namespace mongo { return _elapsed; } - unsigned long long timeInWriteLock() const { - return _newer._totalWriteLockedTime - _older._totalWriteLockedTime; - } - double percentWriteLocked() const { - double e = (double) elapsed(); - double w = (double) timeInWriteLock(); - return w/e; - } - - Top::CollectionData globalUsageDiff(); Top::UsageMap collectionUsageDiff(); private: @@ -103,8 +91,6 @@ namespace mongo { const SnapshotData& getPrev( int numBack = 0 ); std::auto_ptr<SnapshotDelta> computeDelta( int numBack = 0 ); - - void outputLockInfoHTML( std::stringstream& ss ); private: mongo::mutex _lock; int _n; |