@@ -398,14 +398,14 @@ Returns a list of `PerformanceEntry` objects in chronological order
398398with respect to ` performanceEntry.startTime ` whose ` performanceEntry.entryType `
399399is equal to ` type ` .
400400
401- ## monitorEventLoopDelay([ options] )
401+ ## perf_hooks. monitorEventLoopDelay([ options] )
402402<!-- YAML
403403added: REPLACEME
404404-->
405405
406406* ` options ` {Object}
407407 * ` resolution ` {number} The sampling rate in milliseconds. Must be greater
408- than zero. Defaults to ` 10 ` .
408+ than zero. ** Default: ** ` 10 ` .
409409* Returns: {Histogram}
410410
411411Creates a ` Histogram ` object that samples and reports the event loop delay
@@ -421,7 +421,7 @@ detect.
421421const { monitorEventLoopDelay } = require (' perf_hooks' );
422422const h = monitorEventLoopDelay ({ resolution: 20 });
423423h .enable ();
424- // Do something
424+ // Do something.
425425h .disable ();
426426console .log (h .min );
427427console .log (h .max );
@@ -459,21 +459,30 @@ Enables the event loop delay sample timer. Returns `true` if the timer was
459459started, ` false ` if it was already started.
460460
461461#### histogram.exceeds
462+ <!-- YAML
463+ added: REPLACEME
464+ -->
462465
463- * Value: {number}
466+ * {number}
464467
465468The number of times the event loop delay exceeded the maximum 1 hour event
466469loop delay threshold.
467470
468471#### histogram.max
472+ <!-- YAML
473+ added: REPLACEME
474+ -->
469475
470- * Value: {number}
476+ * {number}
471477
472478The maximum recorded event loop delay.
473479
474480#### histogram.mean
481+ <!-- YAML
482+ added: REPLACEME
483+ -->
475484
476- * Value: {number}
485+ * {number}
477486
478487The mean of the recorded event loop delays.
479488
@@ -482,19 +491,26 @@ The mean of the recorded event loop delays.
482491added: REPLACEME
483492-->
484493
485- * Value: {number}
494+ * {number}
486495
487496The minimum recorded event loop delay.
488497
489498#### histogram.percentile(percentile)
499+ <!-- YAML
500+ added: REPLACEME
501+ -->
490502
491503* ` percentile ` {number} A percentile value between 1 and 100.
504+ * Returns: {number}
492505
493506Returns the value at the given percentile.
494507
495508#### histogram.percentiles
509+ <!-- YAML
510+ added: REPLACEME
511+ -->
496512
497- * Value: {Map}
513+ * {Map}
498514
499515Returns a ` Map ` object detailing the accumulated percentile distribution.
500516
@@ -506,8 +522,11 @@ added: REPLACEME
506522Resets the collected histogram data.
507523
508524#### histogram.stddev
525+ <!-- YAML
526+ added: REPLACEME
527+ -->
509528
510- * Value: {number}
529+ * {number}
511530
512531The standard deviation of the recorded event loop delays.
513532
0 commit comments