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

Function processComplete

lib/internal/perf/timerify.js:37–53  ·  view source on GitHub ↗
(name, start, args, histogram)

Source from the content-addressed store, hash-verified

35} = require('internal/util');
36
37function processComplete(name, start, args, histogram) {
38 const duration = now() - start;
39 if (histogram !== undefined)
40 histogram.record(MathCeil(duration * 1e6));
41 const entry =
42 createPerformanceNodeEntry(
43 name,
44 'function',
45 start,
46 duration,
47 args);
48
49 for (let n = 0; n < args.length; n++)
50 entry[n] = args[n];
51
52 enqueue(entry);
53}
54
55function timerify(fn, options = kEmptyObject) {
56 validateFunction(fn, 'fn');

Callers 1

timerifiedFunction · 0.85

Calls 4

enqueueFunction · 0.70
nowFunction · 0.50
recordMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…