MCPcopy
hub / github.com/ReactTooltip/react-tooltip / collectGarbage

Function collectGarbage

benchmarks/fixture/app.tsx:76–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74}
75
76async function collectGarbage() {
77 if (typeof window.gc === 'function') {
78 window.gc()
79 await nextFrame()
80 window.gc()
81 await nextFrame()
82 }
83}
84
85async function readStableHeapBytes() {
86 await collectGarbage()

Callers 2

readStableHeapBytesFunction · 0.85
runScalingBenchmarkFunction · 0.85

Calls 1

nextFrameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…