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

Function trim

packages/app/src/components/debug-bar.tsx:207–209  ·  view source on GitHub ↗
(list: Array<{ at: number; dur: number }>, span: number, at: number)

Source from the content-addressed store, hash-verified

205 let snap = 0
206
207 const trim = (list: Array<{ at: number; dur: number }>, span: number, at: number) => {
208 while (list[0] && at - list[0].at > span) list.shift()
209 }
210
211 const syncFrame = (at: number) => {
212 trim(fps, span, at)

Callers 2

syncFrameFunction · 0.70
syncLongFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected