← Back to release summary

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

Ecosystem

Explainers: https://github.com/explainers-by-googlers/task-interrupt-timing https://github.com/WICG/proposals/issues/312

View on chromestatus.com