class Histogram
package js.node.perf_hooks
extended by IntervalHistogram, RecordableHistogram
Histogram for recording values (e.g. event loop delay samples).
The constructor of this class is not exposed to users.
See also:
Variables
read onlycountBigInt:Dynamic
The number of samples recorded by the histogram (as a BigInt).
// TODO: type as BigInt when hxnodejs provides one.
read onlyexceeds:Float
The number of times the event loop delay exceeded the maximum 1 hour event loop delay threshold.
read onlyexceedsBigInt:Dynamic
The number of times the event loop delay exceeded the maximum 1 hour event loop delay threshold (as a BigInt).
read onlypercentiles:Map<Float, Float>
Returns a Map object detailing the accumulated percentile distribution.
read onlypercentilesBigInt:Dynamic
Returns a Map object detailing the accumulated percentile distribution (BigInt keys/values).
// TODO: type as Map
Methods
percentile(percentile:Float):Float
Returns the value at the given percentile.
Parameters:
percentile | A percentile value in the range (0, 100]. |
|---|
percentileBigInt(percentile:Float):Dynamic
Returns the value at the given percentile (as a BigInt).
Parameters:
percentile | A percentile value in the range (0, 100]. |
|---|