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

Function endAfterGC

benchmark/async_hooks/gc-tracking.js:16–23  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

14});
15
16function endAfterGC(n) {
17 setImmediate(() => {
18 global.gc();
19 setImmediate(() => {
20 bench.end(n);
21 });
22 });
23}
24
25function main({ n, method }) {
26 switch (method) {

Callers 1

mainFunction · 0.85

Calls 2

setImmediateFunction · 0.50
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…