Skip to content

Commit aa4dc99

Browse files
RafaelGSStniessen
andauthored
fixup! apply cr suggestions
Co-authored-by: Tobias Nießen <[email protected]>
1 parent 85dbd8f commit aa4dc99

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/api/perf_hooks.md

+4-3
Original file line numberDiff line numberDiff 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.
459459
It 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
465466
const { performance } = require('node:perf_hooks');

0 commit comments

Comments
 (0)