MCPcopy Create free account
hub / github.com/anomalyco/opencode / heapv

Function heapv

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

Source from the content-addressed store, hash-verified

136 const na = () => language.t("debugBar.na").toUpperCase()
137 const heap = () => (state.heap.limit ? (state.heap.used ?? 0) / state.heap.limit : undefined)
138 const heapv = () => {
139 const value = heap()
140 if (value === undefined) return na()
141 return `${Math.round(value * 100)}%`
142 }
143 const longv = () => (state.long.count === undefined ? na() : `${time(state.long.block) ?? na()}/${state.long.count}`)
144 const navv = () => (state.nav.pending ? "..." : (time(state.nav.dur) ?? na()))
145

Callers 1

DebugBarFunction · 0.85

Calls 2

heapFunction · 0.85
naFunction · 0.85

Tested by

no test coverage detected