Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ m
Function
m
test/parallel/test-perf-hooks-timerify-histogram-async.mjs:9–11 ·
view source on GitHub ↗
(a, b = 1)
Source
from the content-addressed store, hash-verified
7
8
const
histogram = createHistogram();
9
const
m =
async
(a, b = 1) => {
10
await
sleep(10);
11
};
12
const
n = timerify(m, { histogram });
13
assert.strictEqual(histogram.max, 0);
14
for
(
let
i = 0; i < 10; i++) {
Callers
nothing calls this directly
Calls
1
sleep
Function · 0.50
Tested by
no test coverage detected