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

Function eventLoopUtilization

lib/internal/perf/event_loop_utilization.js:11–20  ·  view source on GitHub ↗
(util1, util2)

Source from the content-addressed store, hash-verified

9} = internalBinding('performance');
10
11function eventLoopUtilization(util1, util2) {
12 // Get the original milestone timestamps that calculated from the beginning
13 // of the process.
14 return internalEventLoopUtilization(
15 milestones[NODE_PERFORMANCE_MILESTONE_LOOP_START] / 1e6,
16 loopIdleTime(),
17 util1,
18 util2,
19 );
20}
21
22function internalEventLoopUtilization(loopStart, loopIdleTime, util1, util2) {
23 if (loopStart <= 0) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…