File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -455,11 +455,12 @@ added: REPLACEME
455455 * ` events ` {number} Number of events that have been processed by the event handler.
456456 * ` eventsWaiting ` {number} Number of events that were waiting to be processed when the event provider was called.
457457
458- This is an wrapper to the ` uv_metrics_info ` .
458+ This is a wrapper to the ` uv_metrics_info ` function .
459459It returns the current set of event loop metrics.
460460
461- It's recommended to use this function inside a ` setImmediate ` to avoid
462- collecting metrics before finishing all operations on current loop iteration.
461+ It is recommended to use this function inside a function whose execution was
462+ scheduled using ` setImmediate ` to avoid collecting metrics before finishing all
463+ operations scheduled during the current loop iteration.
463464
464465``` cjs
465466const { performance } = require (' node:perf_hooks' );
You can’t perform that action at this time.
0 commit comments