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

Function reset

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

Source from the content-addressed store, hash-verified

251 }
252
253 const reset = () => {
254 fps.length = 0
255 long.length = 0
256 seen.clear()
257 last = 0
258 snap = 0
259 batch(() => {
260 setState("fps", undefined)
261 setState("gap", undefined)
262 setState("jank", undefined)
263 setState("delay", undefined)
264 setState("inp", undefined)
265 if (hasLong) setState("long", { block: 0, count: 0, max: 0 })
266 })
267 }
268
269 const watch = (type: string, init: Obs, fn: (entries: PerformanceEntry[]) => void) => {
270 if (typeof PerformanceObserver === "undefined") return false

Callers 1

visFunction · 0.70

Calls 3

batchFunction · 0.85
setStateFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected