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

Function doTrace

benchmark/misc/trace.js:20–26  ·  view source on GitHub ↗
(n, trace)

Source from the content-addressed store, hash-verified

18} = common.binding('constants').trace;
19
20function doTrace(n, trace) {
21 bench.start();
22 for (let i = 0; i < n; i++) {
23 trace(kBeforeEvent, 'foo', 'test', 0, 'test');
24 }
25 bench.end(n);
26}
27
28function doIsTraceCategoryEnabled(n, isTraceCategoryEnabled) {
29 bench.start();

Callers 1

mainFunction · 0.85

Calls 3

traceFunction · 0.85
startMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…