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

Node perf_hooks.PerformanceNodeTiming TypeScript interface | API Reference | Bun

Node perf_hooks.PerformanceNodeTiming TypeScript interface | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/node:perf_hooks/PerformanceNodeTimingPbootstrapCompletePdurationPentryTypePenvironmentPidleTimePloopExitPloopStartPnamePnodeStartPstartTimeMtoJSONPuvMetricsInfoPv8Start

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:perf_hooks/PerformanceNodeTimingPbootstrapCompletePdurationPentryTypePenvironmentPidleTimePloopExitPloopStartPnamePnodeStartPstartTimeMtoJSONPuvMetricsInfoPv8Start

interface

perf_hooks.PerformanceNodeTiminginterface PerformanceNodeTimingThis property is an extension by Node.js. It is not available in Web browsers.

Provides timing details for Node.js itself. The constructor of this class is not exposed to users.

readonly bootstrapComplete: numberThe high resolution millisecond timestamp at which the Node.js process completed bootstrapping. If bootstrapping has not yet finished, the property has the value of -1.

readonly duration: numberreadonly entryType: 'node'readonly environment: numberThe high resolution millisecond timestamp at which the Node.js environment was initialized.

readonly idleTime: numberThe high resolution millisecond timestamp of the amount of time the event loop has been idle within the event loop's event provider (e.g. epoll_wait). This does not take CPU usage into consideration. If the event loop has not yet started (e.g., in the first tick of the main script), the property has the value of 0.

readonly loopExit: numberThe high resolution millisecond timestamp at which the Node.js event loop exited. If the event loop has not yet exited, the property has the value of -1. It can only have a value of not -1 in a handler of the 'exit' event.

readonly loopStart: numberThe high resolution millisecond timestamp at which the Node.js event loop started. If the event loop has not yet started (e.g., in the first tick of the main script), the property has the value of -1.

readonly name: stringreadonly nodeStart: numberThe high resolution millisecond timestamp at which the Node.js process was initialized.

readonly startTime: numberreadonly uvMetricsInfo: UVMetricsThis is a wrapper to the uv_metrics_info function. It returns the current set of event loop metrics.

It is recommended to use this property inside a function whose execution was scheduled using setImmediate to avoid collecting metrics before finishing all operations scheduled during the current loop iteration.

readonly v8Start: numberThe high resolution millisecond timestamp at which the V8 platform was initialized.

toJSON(): any;

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco

We're hiring →

智能索引记录