Skip to main content
Histogram - perf_hooks - Node documentation
interface Histogram

Usage in Deno

import { type Histogram } from "node:perf_hooks";

Properties

readonly
count: number

The number of samples recorded by the histogram.

readonly
countBigInt: bigint

The number of samples recorded by the histogram. v17.4.0, v16.14.0

readonly
exceeds: number

The number of times the event loop delay exceeded the maximum 1 hour event loop delay threshold.

readonly
exceedsBigInt: bigint

The number of times the event loop delay exceeded the maximum 1 hour event loop delay threshold.

readonly
max: number

The maximum recorded event loop delay.

readonly
maxBigInt: number

The maximum recorded event loop delay. v17.4.0, v16.14.0

readonly
mean: number

The mean of the recorded event loop delays.

readonly
min: number

The minimum recorded event loop delay.

readonly
minBigInt: bigint

The minimum recorded event loop delay. v17.4.0, v16.14.0

readonly
percentiles: Map<number, number>

Returns a Map object detailing the accumulated percentile distribution.

readonly
percentilesBigInt: Map<bigint, bigint>

Returns a Map object detailing the accumulated percentile distribution.

readonly
stddev: number

The standard deviation of the recorded event loop delays.

Methods

percentile(percentile: number): number

Returns the value at the given percentile.

percentileBigInt(percentile: number): bigint

Returns the value at the given percentile.

reset(): void

Resets the collected histogram data.