Bun

interface

perf_hooks.Histogram

interface Histogram

  • 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.

  • percentile: number
    ): number;

    Returns the value at the given percentile.

    @param percentile

    A percentile value in the range (0, 100].

  • percentile: number
    ): bigint;

    Returns the value at the given percentile.

    @param percentile

    A percentile value in the range (0, 100].

  • reset(): void;

    Resets the collected histogram data.