get_frame_stats
Sample live frame-health metrics to detect dropped frames and CPU-bound rendering, returning FPS, frame times, and a CPU vs GPU/vsync bound verdict.
Instructions
Sample a live page's frame-health metrics over a short window (without taking a capture) and return aggregates: frame rate (fps), average and worst frame time, dropped frames, CPU submit time (main-thread cost per frame), the estimated display refresh interval, and a CPU-vs-GPU/vsync bound verdict. Use this to tell whether a page is dropping frames and whether it's CPU/main-thread bound; GPU time is not measured live, so a non-CPU verdict reads "GPU/vsync" — take a capture with profilePasses:true to measure GPU time and confirm. Requires the page's rendering loop to use requestAnimationFrame.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | Page to sample. Optional when exactly one page is connected. | |
| durationMs | No | Sampling window in milliseconds (default 1000, clamped 100–10000). |