The number of samples recorded by the histogram.
Search the reference...
/
interface
The number of samples recorded by the histogram. v17.4.0, v16.14.0
The number of times the event loop delay exceeded the maximum 1 hour event loop delay threshold.
The number of times the event loop delay exceeded the maximum 1 hour event loop delay threshold.
The maximum recorded event loop delay.
The maximum recorded event loop delay. v17.4.0, v16.14.0
The mean of the recorded event loop delays.
The minimum recorded event loop delay.
The minimum recorded event loop delay. v17.4.0, v16.14.0
Returns a Map object detailing the accumulated percentile distribution.
Returns a Map object detailing the accumulated percentile distribution.
The standard deviation of the recorded event loop delays.
Disables the update interval timer when the histogram is disposed.
const { monitorEventLoopDelay } = require('node:perf_hooks');
{
using hist = monitorEventLoopDelay({ resolution: 20 });
hist.enable();
// The histogram will be disabled when the block is exited.
}
Disables the update interval timer. Returns true if the timer was stopped, false if it was already stopped.
Enables the update interval timer. Returns true if the timer was started, false if it was already started.
Returns the value at the given percentile.
A percentile value in the range (0, 100].
Returns the value at the given percentile.
A percentile value in the range (0, 100].
Resets the collected histogram data.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →Node perf_hooks.IntervalHistogram TypeScript interface | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for interface node:perf_hooks.IntervalHistogram | Bun