Skip to content

PerformanceNodeTiming of perf_hooks #45958

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

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    perf_hooksIssues and PRs related to the perf_hooks module and performance measurement APIs.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions