[Rocksdb] Measure all FSYNC/SYNC times

Summary: Add stop watches around all sync calls.

Test Plan: db_bench check if respective histograms are printed

Reviewers: haobo, dhruba

Reviewed By: haobo

CC: leveldb

Differential Revision: https://reviews.facebook.net/D11073
This commit is contained in:
Abhishek Kona
2013-06-05 11:06:21 -07:00
parent ee522d0032
commit d91b42ee27
5 changed files with 22 additions and 1 deletions

View File

@@ -62,7 +62,12 @@ enum Histograms {
DB_GET = 0,
DB_WRITE = 1,
COMPACTION_TIME = 2,
HISTOGRAM_ENUM_MAX = 3,
TABLE_SYNC_MICROS = 3,
COMPACTION_OUTFILE_SYNC_MICROS = 4,
WAL_FILE_SYNC_MICROS = 5,
MANIFEST_FILE_SYNC_MICROS = 6,
HISTOGRAM_ENUM_MAX = 7
};
struct HistogramData {