C
RecordableHistogram extends Histogram
History
Added in: v15.9.0, v14.18.0
v15.9.0, v14.18.0
Introduced in: v8.5.0
v8.5.0
histogram.add(other): void
Attributes
other:
RecordableHistogramAdds the values from other to this histogram.
histogram.record(val): void
Attributes
histogram.recordDelta(): void
Calculates the amount of time (in nanoseconds) that has passed since the
previous call to recordDelta() and records that amount in the histogram.
histogram.recordCorrected(val, expectedInterval): void
Attributes
Records a value with coordinated omission correction. When a system stall
prevents timely recording, this method backfills intermediate values at
expectedInterval steps between the previously recorded value and val.
This compensates for measurement gaps that would otherwise underrepresent
latency.
histogram.subtract(other): void
Attributes
other:
RecordableHistogramSubtracts the values of other from this histogram. Both histograms should
have compatible configurations. Bucket counts that would become negative
are clamped to zero.