MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / node_alloc.js

File node_alloc.js

crates/memtrack/testdata/node_alloc.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Run with `node --perf-basic-prof --interpreted-frames-native-stack`: V8 then
2// gives `allocation` a `JS:~allocation` entry in /tmp/perf-<pid>.map, so the
3// native ArrayBuffer allocation below can be attributed to this JS function.
4const ALLOCATION_SIZE = 2_000_001;

Callers

nothing calls this directly

Calls 1

allocationFunction · 0.70

Tested by

no test coverage detected