Skip to content

Conversation

@legendecas
Copy link
Member

@legendecas legendecas commented Oct 22, 2025

performance.eventLoopUtilization and performance.timerify are not
part of the Web API. Expose these two functions directly on the
perf_hooks module instead.

Though, this does not deprecate performance.eventLoopUtilization and
performance.timerify yet.

Fixes: #60368

`performance.eventLoopUtilization` and `performance.timerify` are not
part of the Web API. Expose these two functions directly on the
`perf_hooks` module.
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. perf_hooks Issues and PRs related to the implementation of the Performance Timing API. labels Oct 22, 2025
@legendecas legendecas added the web-standards Issues and PRs related to Web APIs label Oct 22, 2025
-->

An object that can be used to query performance information from a worker
instance. Similar to [`perf_hooks.performance`][].
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worker.performance is not similar to perf_hooks.performance at all. It has only one method eventLoopUtilization.

@codecov
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.58%. Comparing base (f0679db) to head (8e763c9).
⚠️ Report is 40 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #60370      +/-   ##
==========================================
+ Coverage   88.56%   88.58%   +0.01%     
==========================================
  Files         704      704              
  Lines      208398   207778     -620     
  Branches    40057    40026      -31     
==========================================
- Hits       184573   184063     -510     
+ Misses      15846    15760      -86     
+ Partials     7979     7955      -24     
Files with missing lines Coverage Δ
lib/perf_hooks.js 100.00% <100.00%> (ø)

... and 123 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@aduh95 aduh95 added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Oct 27, 2025
@aduh95 aduh95 added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Oct 27, 2025
@nodejs-github-bot nodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Oct 27, 2025
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/60370
✔  Done loading data for nodejs/node/pull/60370
----------------------------------- PR info ------------------------------------
Title      perf_hooks: move non-standard performance properties to perf_hooks (#60370)
   ⚠  Could not retrieve the email or name of the PR author's from user's GitHub profile!
Branch     legendecas:perf-elu -> nodejs:main
Labels     author ready, perf_hooks, needs-ci, commit-queue-squash, web-standards
Commits    2
 - perf_hooks: move non-standard performance properties to perf_hooks
 - fixup! perf_hooks: move non-standard performance properties to perf_h…
Committers 1
 - Chengzhong Wu <[email protected]>
PR-URL: https://github.com/nodejs/node/pull/60370
Fixes: https://github.com/nodejs/node/issues/60368
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Marco Ippolito <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/60370
Fixes: https://github.com/nodejs/node/issues/60368
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Marco Ippolito <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
--------------------------------------------------------------------------------
   ⚠  Commits were pushed since the last approving review:
   ⚠  - perf_hooks: move non-standard performance properties to perf_hooks
   ⚠  - fixup! perf_hooks: move non-standard performance properties to perf_h…
   ℹ  This PR was created on Wed, 22 Oct 2025 19:52:54 GMT
   ✔  Approvals: 3
   ✔  - Joyee Cheung (@joyeecheung) (TSC): https://github.com/nodejs/node/pull/60370#pullrequestreview-3367779455
   ✔  - Marco Ippolito (@marco-ippolito) (TSC): https://github.com/nodejs/node/pull/60370#pullrequestreview-3368304491
   ✔  - Colin Ihrig (@cjihrig): https://github.com/nodejs/node/pull/60370#pullrequestreview-3370054097
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2025-10-27T22:14:00Z: https://ci.nodejs.org/job/node-test-pull-request/69910/
- Querying data for job/node-test-pull-request/69910/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/18858748314

@aduh95 aduh95 merged commit 51a57f2 into nodejs:main Oct 27, 2025
73 checks passed
@aduh95
Copy link
Contributor

aduh95 commented Oct 27, 2025

Landed in 51a57f2

@legendecas legendecas deleted the perf-elu branch October 28, 2025 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-failed An error occurred while landing this pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. needs-ci PRs that need a full CI run. perf_hooks Issues and PRs related to the implementation of the Performance Timing API. web-standards Issues and PRs related to Web APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SyntaxError in node:perf_hooks documentation

7 participants