温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/perf_hooks/createHistogram
点击访问原文链接

Node perf_hooks.createHistogram function | API Reference | Bun

Node perf_hooks.createHistogram function | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/node:perf_hooks/createHistogramFcreateHistogram

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:perf_hooks/createHistogramFcreateHistogram

function

perf_hooks.createHistogramfunction createHistogram(options?: CreateHistogramOptions): RecordableHistogram;

Returns a RecordableHistogram.

Referenced typesinterface CreateHistogramOptionsfigures?: number

The number of accuracy digits. Must be a number between 1 and 5.

highest?: number | bigint

The maximum recordable value. Must be an integer value greater than min.

lowest?: number | bigint

The minimum recordable value. Must be an integer value greater than 0.

interface RecordableHistogramreadonly 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: Mapnumber, number>

Returns a Map object detailing the accumulated percentile distribution.

readonly percentilesBigInt: Mapbigint, bigint>

Returns a Map object detailing the accumulated percentile distribution.

readonly stddev: number

The standard deviation of the recorded event loop delays.

add(other: RecordableHistogram): void;

Adds the values from other to this histogram.

percentile(percentile: number): number;

Returns the value at the given percentile.

@param percentile

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

percentileBigInt(percentile: number): bigint;

Returns the value at the given percentile.

@param percentile

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

record(val: number | bigint): void;
@param val

The amount to record in the histogram.

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.

reset(): void;

Resets the collected histogram data.

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

Node perf_hooks.createHistogram function | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for function node:perf_hooks.createHistogram | Bun