Skip to content

[v24.x backport] perf_hooks: sample delay per event loop iteration - #64480

Closed
pabloerhard wants to merge 195 commits into
nodejs:v24.x-stagingfrom
pabloerhard:backport-62935-to-v24.x
Closed

pabloerhard wants to merge 195 commits into
nodejs:v24.x-stagingfrom
pabloerhard:backport-62935-to-v24.x

Conversation

@pabloerhard

Copy link
Copy Markdown
Contributor

Add a samplePerIteration option to monitorEventLoopDelay that records event loop delay from libuv event loop iterations instead of the timer interval sampler. The default remains interval-based; existing uses of monitorEventLoopDelay() keep behaving the same unless the samplePerIteration option is passed through.

PR-URL: #62935
Reviewed-By: Bryan English bryan@bryanenglish.com
Reviewed-By: Ruben Bridgewater