Frame-budget instrumentation overlay (opt-in, local only)
An opt-in developer overlay records per-frame timings for scroll handling, range calculation, DOM patching, measurement and renderer time. Budgets are measured against a configurable target. Data stays in the browser, with no telemetry, and can be exported as JSON for bug reports.
Planned. This page shows the specification from issue #183. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Grid with 500,000 rows, instrumentation enabled, and an overlay showing a frame timeline and phase breakdown.
Expected behavior
The overlay shows a per-phase breakdown, and frames over budget are highlighted. Injected cost appears in the renderer phase. Export downloads a local JSON file and makes no network requests.
Planned API surface
instrumentation.enabledinstrumentation.frameBudgetMsgetFrameStats()exportFrameTrace()onFrameBudgetExceededAcceptance criteria
- With instrumentation disabled, no timing code paths run beyond a constant-time flag check (verified by test). (pending)
- Phases are reported as scroll, range, patch, measure, renderer and other. (pending)
- The exported JSON schema is versioned and documented. (pending)
- A network audit during the demo shows zero instrumentation requests. (pending)
- The docs label all values as environment-specific measurements. (pending)