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

Usage in Deno

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

Methods

record(val: number | bigint): void
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.

add(other: RecordableHistogram): void

Adds the values from other to this histogram.