Class HistogramData
- Namespace
- RocksDbNet
- Assembly
- RocksDb.Net.dll
A snapshot of histogram data gathered by RocksDb statistics.
public sealed class HistogramData
- Inheritance
-
HistogramData
- Inherited Members
Remarks
Obtained from GetHistogramData(Histogram). The unit depends entirely on which histogram was asked for: timing histograms are in microseconds, size histograms in bytes, and counting histograms are dimensionless. Nothing here records which, so keep the histogram type alongside the data.
A snapshot, not a live view: the values are read once and do not track later activity. All-zero data means either that no samples were recorded or that no statistics object was attached; the two are indistinguishable.
Properties
Average
The arithmetic mean of the recorded samples.
public double Average { get; }
Property Value
Count
How many samples were recorded. Zero means the percentiles and the average carry no information.
public ulong Count { get; }
Property Value
Max
The largest single sample recorded.
public double Max { get; }
Property Value
Median
The 50th percentile of the recorded samples.
public double Median { get; }
Property Value
Min
The smallest single sample recorded.
public double Min { get; }
Property Value
P95
The 95th percentile of the recorded samples.
public double P95 { get; }
Property Value
P99
The 99th percentile of the recorded samples.
public double P99 { get; }
Property Value
StdDev
The standard deviation of the recorded samples.
public double StdDev { get; }
Property Value
Sum
The total of all recorded samples. Divided by Count this gives the mean, which is also reported directly as Average.
public ulong Sum { get; }