MCPcopy Create free account
hub / github.com/ReactTooltip/react-tooltip / readUsedHeapBytes

Function readUsedHeapBytes

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

Source from the content-addressed store, hash-verified

58}
59
60function readUsedHeapBytes() {
61 const performanceWithMemory = window.performance as Performance & {
62 memory?: {
63 usedJSHeapSize: number
64 }
65 }
66
67 return performanceWithMemory.memory?.usedJSHeapSize ?? null
68}
69
70function nextFrame() {
71 return new Promise<void>((resolve) => {

Callers 2

readStableHeapBytesFunction · 0.85
runScalingBenchmarkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected