Long Animation Frames: PerformanceScriptTiming.stackTrace
- Category
- Performance
- Type
- New or changed feature
- Status
- Proposed (Chrome Proposed)
- Intent stage
- None
Summary
Extends Long Animation Frames ("long-animation-frame") with an opt-in takeTracing option on PerformanceObserverInit and a stackTrace attribute on PerformanceScriptTiming that captures a one-shot JavaScript call stack when a script exceeds a predetermined execution threshold.
Motivation
PerformanceScriptTiming in Long Animation Frames currently reports only outer entry-point attribution, which often points to generic framework dispatchers or RUM wrappers rather than the inner function consuming CPU. Adding opt-in one-shot mid-execution call stack capture lets developers pinpoint main-thread jank without continuous sampling overhead or Document-Policy headers.
Standards & signals
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://issues.chromium.org/issues/487136777
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=long-animation-frames-performancescripttiming-stacktrace
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Long%20Animation%20Frames%3A%20PerformanceScriptTiming.stackTrace
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Long%20Animation%20Frames%3A%20PerformanceScriptTiming.stackTrace
- Baseline status: https://webstatus.dev/?q=Long%20Animation%20Frames%3A%20PerformanceScriptTiming.stackTrace
Explainers: https://github.com/explainers-by-googlers/task-interrupt-timing https://github.com/WICG/proposals/issues/312