[rocksdb][refactor] statistic printing code to one place

Summary: $title

Test Plan: db_bench --statistics=1

Reviewers: haobo

Reviewed By: haobo

CC: leveldb

Differential Revision: https://reviews.facebook.net/D11373
This commit is contained in:
Abhishek Kona
2013-06-18 20:28:41 -07:00
parent 09de7a3b6a
commit 5ef6bb8c37
5 changed files with 63 additions and 59 deletions

View File

@@ -186,7 +186,8 @@ class Statistics {
virtual void measureTime(Histograms histogramType, uint64_t time) = 0;
virtual void histogramData(Histograms type, HistogramData * const data) = 0;
// String representation of the statistic object.
std::string ToString();
};
// Create a concrete DBStatistics object