-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PerformanceNodeTiming of perf_hooks #45958
Comments
I can confirm the issue is introduced in #43781. The problem is that we are exposing timing entries that are earlier than creating environments. These entries are available in the worker threads too. As these timing entries are relative to the As an alternative, we may revert #43781. |
If it is expected currently I think we can explain this in the documentation, or i can submit a PR. |
oy, yeah, these should definitely not be negative values. I'd consider this a breaking bug. Either #43781 should be reverted or timeOrigin needs to be set sooner. |
PR-URL: #46588 Fixes: #45958 Refs: #43781 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
PR-URL: #46588 Fixes: #45958 Refs: #43781 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
Version
main branch
Platform
No response
Subsystem
perf_hooks
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
always.
What is the expected behavior?
v8Start
andnodeStart
should be greater than 0 ?What do you see instead?
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
The text was updated successfully, but these errors were encountered: