@ -251,30 +251,32 @@ enum Histograms : uint32_t {
NUM_FILES_IN_SINGLE_COMPACTION ,
DB_SEEK ,
WRITE_STALL ,
SST_READ_MICROS ,
HISTOGRAM_ENUM_MAX , // TODO(ldemailly): enforce HistogramsNameMap match
} ;
const std : : vector < std : : pair < Histograms , std : : string > > HistogramsNameMap = {
{ DB_GET , " rocksdb.db.get.micros " } ,
{ DB_WRITE , " rocksdb.db.write.micros " } ,
{ COMPACTION_TIME , " rocksdb.compaction.times.micros " } ,
{ TABLE_SYNC_MICROS , " rocksdb.table.sync.micros " } ,
{ COMPACTION_OUTFILE_SYNC_MICROS , " rocksdb.compaction.outfile.sync.micros " } ,
{ WAL_FILE_SYNC_MICROS , " rocksdb.wal.file.sync.micros " } ,
{ MANIFEST_FILE_SYNC_MICROS , " rocksdb.manifest.file.sync.micros " } ,
{ TABLE_OPEN_IO_MICROS , " rocksdb.table.open.io.micros " } ,
{ DB_MULTIGET , " rocksdb.db.multiget.micros " } ,
{ READ_BLOCK_COMPACTION_MICROS , " rocksdb.read.block.compaction.micros " } ,
{ READ_BLOCK_GET_MICROS , " rocksdb.read.block.get.micros " } ,
{ WRITE_RAW_BLOCK_MICROS , " rocksdb.write.raw.block.micros " } ,
{ STALL_L0_SLOWDOWN_COUNT , " rocksdb.l0.slowdown.count " } ,
{ STALL_MEMTABLE_COMPACTION_COUNT , " rocksdb.memtable.compaction.count " } ,
{ STALL_L0_NUM_FILES_COUNT , " rocksdb.num.files.stall.count " } ,
{ HARD_RATE_LIMIT_DELAY_COUNT , " rocksdb.hard.rate.limit.delay.count " } ,
{ SOFT_RATE_LIMIT_DELAY_COUNT , " rocksdb.soft.rate.limit.delay.count " } ,
{ NUM_FILES_IN_SINGLE_COMPACTION , " rocksdb.numfiles.in.singlecompaction " } ,
{ DB_SEEK , " rocksdb.db.seek.micros " } ,
{ WRITE_STALL , " rocksdb.db.write.stall " } ,
{ DB_GET , " rocksdb.db.get.micros " } ,
{ DB_WRITE , " rocksdb.db.write.micros " } ,
{ COMPACTION_TIME , " rocksdb.compaction.times.micros " } ,
{ TABLE_SYNC_MICROS , " rocksdb.table.sync.micros " } ,
{ COMPACTION_OUTFILE_SYNC_MICROS , " rocksdb.compaction.outfile.sync.micros " } ,
{ WAL_FILE_SYNC_MICROS , " rocksdb.wal.file.sync.micros " } ,
{ MANIFEST_FILE_SYNC_MICROS , " rocksdb.manifest.file.sync.micros " } ,
{ TABLE_OPEN_IO_MICROS , " rocksdb.table.open.io.micros " } ,
{ DB_MULTIGET , " rocksdb.db.multiget.micros " } ,
{ READ_BLOCK_COMPACTION_MICROS , " rocksdb.read.block.compaction.micros " } ,
{ READ_BLOCK_GET_MICROS , " rocksdb.read.block.get.micros " } ,
{ WRITE_RAW_BLOCK_MICROS , " rocksdb.write.raw.block.micros " } ,
{ STALL_L0_SLOWDOWN_COUNT , " rocksdb.l0.slowdown.count " } ,
{ STALL_MEMTABLE_COMPACTION_COUNT , " rocksdb.memtable.compaction.count " } ,
{ STALL_L0_NUM_FILES_COUNT , " rocksdb.num.files.stall.count " } ,
{ HARD_RATE_LIMIT_DELAY_COUNT , " rocksdb.hard.rate.limit.delay.count " } ,
{ SOFT_RATE_LIMIT_DELAY_COUNT , " rocksdb.soft.rate.limit.delay.count " } ,
{ NUM_FILES_IN_SINGLE_COMPACTION , " rocksdb.numfiles.in.singlecompaction " } ,
{ DB_SEEK , " rocksdb.db.seek.micros " } ,
{ WRITE_STALL , " rocksdb.db.write.stall " } ,
{ SST_READ_MICROS , " rocksdb.sst.read.micros " } ,
} ;
struct HistogramData {