Skip to content

startLoopLagSampler

startLoopLagSampler(): () => void

Defined in: src/instrument.ts:20

Schedule a repeating timer that measures the gap between expected and actual fire time. Logs [profile] loop-lag <N>ms when the lag exceeds 150ms. Returns a stop function. No-op (no timer, no-op stop) when profiling is off.

() => void