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

Function syncLong

packages/app/src/components/debug-bar.tsx:223–229  ·  view source on GitHub ↗
(at = performance.now())

Source from the content-addressed store, hash-verified

221 }
222
223 const syncLong = (at = performance.now()) => {
224 if (!hasLong) return
225 trim(long, span, at)
226 const block = long.reduce((sum, entry) => sum + Math.max(0, entry.dur - 50), 0)
227 const max = long.reduce((hi, entry) => Math.max(hi, entry.dur), 0)
228 setState("long", { block, count: long.length, max })
229 }
230
231 const syncInp = (at = performance.now()) => {
232 for (const [key, entry] of seen) {

Callers 2

DebugBarFunction · 0.85
startFunction · 0.85

Calls 2

setStateFunction · 0.85
trimFunction · 0.70

Tested by

no test coverage detected