MCPcopy Index your code
hub / github.com/nodejs/node / monitorEventLoopDelay

Function monitorEventLoopDelay

lib/internal/perf/event_loop_delay.js:81–94  ·  view source on GitHub ↗

* @param {{ * resolution : number * }} [options] * @returns {ELDHistogram}

(options = kEmptyObject)

Source from the content-addressed store, hash-verified

79 * @returns {ELDHistogram}
80 */
81function monitorEventLoopDelay(options = kEmptyObject) {
82 validateObject(options, 'options');
83
84 const { resolution = 10 } = options;
85 validateInteger(resolution, 'options.resolution', 1);
86
87 return ReflectConstruct(
88 function() {
89 markTransferMode(this, true, false);
90 this[kEnabled] = false;
91 this[kHandle] = createELDHistogram(resolution);
92 this[kMap] = new SafeMap();
93 }, [], ELDHistogram);
94}
95
96module.exports = monitorEventLoopDelay;

Calls 1

markTransferModeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…