MCPcopy
hub / github.com/anomalyco/opencode / syncHeap

Function syncHeap

packages/app/src/components/debug-bar.tsx:247–251  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

245 }
246
247 const syncHeap = () => {
248 const mem = (performance as Mem).memory
249 if (!mem) return
250 setState("heap", { limit: mem.jsHeapSizeLimit, used: mem.usedJSHeapSize })
251 }
252
253 const reset = () => {
254 fps.length = 0

Callers 2

startFunction · 0.85
DebugBarFunction · 0.85

Calls 1

setStateFunction · 0.85

Tested by

no test coverage detected