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

Function main

benchmark/misc/trace.js:37–53  ·  view source on GitHub ↗
({ n, method })

Source from the content-addressed store, hash-verified

35}
36
37function main({ n, method }) {
38 const {
39 trace,
40 isTraceCategoryEnabled,
41 } = common.binding('trace_events');
42
43 switch (method) {
44 case 'trace':
45 doTrace(n, trace);
46 break;
47 case 'isTraceCategoryEnabled':
48 doIsTraceCategoryEnabled(n, isTraceCategoryEnabled);
49 break;
50 default:
51 throw new Error(`Unexpected method "${method}"`);
52 }
53}

Callers

nothing calls this directly

Calls 2

doTraceFunction · 0.85
doIsTraceCategoryEnabledFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…