Frame Jank Analysis¶
Analyze frame rendering performance and detect janky frames that cause visible stuttering.
Overview¶
Frame jank occurs when a frame takes longer than the vsync interval (typically 16.67ms for 60fps) to render. perfetto-cli classifies frames into severity levels and provides performance summaries.
Commands¶
frame jank¶
Detect janky frames with severity classification.
Severity levels:
| Level | Criteria |
|---|---|
| SMOOTH | < 1x threshold |
| JANK | 1x-2x threshold |
| BIG_JANK | 2x-4x threshold |
| HUGE_JANK | > 4x threshold |
Options:
| Option | Description | Default |
|---|---|---|
--threshold <ms> |
Jank threshold in milliseconds | 16 |
frame summary¶
Frame performance summary with overall rating.
Reports total frames, jank rate, P95/P99 frame times, and an overall performance rating.
Workflow¶
- Run
frame summaryfor a quick performance overview - If jank rate is high, run
frame jankto see individual janky frames - Use timestamps from janky frames with
cpu hotspotsto identify what's blocking the main thread
Tips¶
- Adjust
--thresholdfor different refresh rates (e.g., 8ms for 120fps displays) - Use
-f jsonto track frame performance metrics over time - Combine with
cpu hotspotsto find the slices causing jank