Skip to content

src: add a native mode to monitorEventLoopDelay#62934

Closed
rochdev wants to merge 5 commits intonodejs:mainfrom
rochdev:native-event-loop-delay
Closed

src: add a native mode to monitorEventLoopDelay#62934
rochdev wants to merge 5 commits intonodejs:mainfrom
rochdev:native-event-loop-delay

Conversation

@rochdev
Copy link
Copy Markdown
Contributor

@rochdev rochdev commented Apr 24, 2026

Add a native mode to monitorEventLoopDelay. The JavaScript implementation is inaccurate and has a completely invalid count. When using the native mode, the resolution is ignored since by hooking into libuv a timer is not needed.

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Apr 24, 2026
@rochdev rochdev marked this pull request as ready for review April 24, 2026 18:18
@rochdev rochdev marked this pull request as draft April 24, 2026 18:36
@rochdev
Copy link
Copy Markdown
Contributor Author

rochdev commented Apr 24, 2026

Duplicate of #62935 without removing the JS implementation if that's preferred.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

❌ Patch coverage is 74.76636% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.63%. Comparing base (a5b3d76) to head (2de60c7).
⚠️ Report is 100 commits behind head on main.

Files with missing lines Patch % Lines
src/histogram.cc 76.08% 14 Missing and 8 partials ⚠️
src/histogram.h 0.00% 4 Missing ⚠️
src/node_perf.cc 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #62934      +/-   ##
==========================================
+ Coverage   89.61%   89.63%   +0.02%     
==========================================
  Files         706      706              
  Lines      219218   219324     +106     
  Branches    42002    42022      +20     
==========================================
+ Hits       196446   196597     +151     
+ Misses      14666    14619      -47     
- Partials     8106     8108       +2     
Files with missing lines Coverage Δ
lib/internal/perf/event_loop_delay.js 95.95% <100.00%> (+0.12%) ⬆️
src/node_perf.cc 86.25% <80.00%> (-0.14%) ⬇️
src/histogram.h 50.00% <0.00%> (-10.00%) ⬇️
src/histogram.cc 78.42% <76.08%> (-0.54%) ⬇️

... and 49 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.

@rochdev
Copy link
Copy Markdown
Contributor Author

rochdev commented May 1, 2026

Closing in favor of #62935

@rochdev rochdev closed this May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants