diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-01-28 14:14:47 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-01-28 14:14:47 -0500 |
commit | 51f4a0dfdbedbbe93416fb68865a18839c66f7a1 (patch) | |
tree | f71eb12e36d6abc593984d077445c58fb3fee548 /db/btree.cpp | |
parent | efe264364e468fd622d177e7fc02731cf3279e9e (diff) | |
download | mongo-51f4a0dfdbedbbe93416fb68865a18839c66f7a1.tar.gz |
track a sample of btree accesses to see cache hit ratio
Diffstat (limited to 'db/btree.cpp')
-rw-r--r-- | db/btree.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/db/btree.cpp b/db/btree.cpp index 96d9e7cd5ef..751cf6bbeaa 100644 --- a/db/btree.cpp +++ b/db/btree.cpp @@ -25,6 +25,7 @@ #include "client.h" #include "dbhelpers.h" #include "curop.h" +#include "dbstats.h" namespace mongo { @@ -391,6 +392,9 @@ namespace mongo { } } #endif + + globalIndexCounters.btree( (char*)this ); + /* binary search for this key */ bool dupsChecked = false; int l=0; |