Report cache hit rates.

This commit is contained in:
JoelKatz
2013-05-21 16:10:51 -07:00
parent 51ec5787d5
commit 6b2a6ea03e
5 changed files with 14 additions and 3 deletions

View File

@@ -65,7 +65,9 @@ public:
HashedObjectStore(int cacheSize, int cacheAge);
bool isLevelDB() { return mLevelDB; }
bool isLevelDB() { return mLevelDB; }
float getCacheHitRate() { return mCache.getHitRate(); }
bool store(HashedObjectType type, uint32 index, const std::vector<unsigned char>& data,
const uint256& hash)