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

Function main

benchmark/perf_hooks/histogram-record.js:12–26  ·  view source on GitHub ↗
({ n })

Source from the content-addressed store, hash-verified

10});
11
12function main({ n }) {
13 const histogram = createHistogram();
14 bench.start();
15 for (let i = 0; i < n; i++) {
16 histogram.record(i + 1);
17 /* eslint-disable no-unused-expressions */
18 histogram.max;
19 histogram.mean;
20 /* eslint-enable no-unused-expressions */
21 }
22 bench.end(n);
23
24 // Avoid V8 deadcode (elimination)
25 assert.ok(histogram);
26}

Callers

nothing calls this directly

Calls 5

createHistogramFunction · 0.85
startMethod · 0.45
recordMethod · 0.45
endMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…