Add timer and counter for batched write operations. #337

Merged
telackey merged 2 commits from telackey/batchtimer into v1.11.2-statediff-v4 2023-03-15 03:32:47 +00:00
Showing only changes of commit e090d876d2 - Show all commits

View File

@ -68,7 +68,7 @@ type Database struct {
deleteTimer metrics.Timer // Timer/counter for measuring time and invocations of Delete().
hasTimer metrics.Timer // Timer/counter for measuring time and invocations of Has().
batchWriteTimer metrics.Timer // Timer/counter for measuring time and invocations of batch writes.
batchItemCounter metrics.Counter // Counter for measuring number of batch written items.
batchItemCounter metrics.Counter // Counter for measuring number of batched items written.
compTimeMeter metrics.Meter // Meter for measuring the total time spent in database compaction
compReadMeter metrics.Meter // Meter for measuring the data read during compaction