MCPcopy Index your code
hub / github.com/anomalyco/opencode / start

Function start

packages/desktop/src/main/unresponsive.ts:58–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 }
57
58 const start = () => {
59 if (sampling || win.isDestroyed() || win.webContents.isDestroyed() || win.webContents.isDevToolsOpened()) return
60 sampling = true
61 samples.clear()
62 schedule()
63 stopTimer = setTimeout(stopAndFlush, samplePeriod)
64 }
65
66 win.on("closed", stopAndFlush)
67

Callers

nothing calls this directly

Calls 2

scheduleFunction · 0.70
clearMethod · 0.45

Tested by

no test coverage detected