Skip to content

PerformanceNodeTiming of perf_hooks #45958

Closed
@theanarkh

Description

@theanarkh

Version

main branch

Platform

No response

Subsystem

perf_hooks

What steps will reproduce the bug?

const { performance } = require('perf_hooks');
console.log(performance.nodeTiming)

How often does it reproduce? Is there a required condition?

always.

What is the expected behavior?

v8Start and nodeStart should be greater than 0 ?

What do you see instead?

nodeStart: -75.49576783180237,
v8Start: -34.36598587036133,
bootstrapComplete: 39.0672550201416,
environment: 0,
loopStart: -1,
loopExit: -1,

Additional information

I am not sure if it is a bug. I think the issue is made by this PR. I just wonder if the user will be a little confused ?
cc @legendecas

Metadata

Metadata

Assignees

No one assigned

    Labels

    perf_hooksIssues and PRs related to the implementation of the Performance Timing API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions