analyze_performance
Identify CPU, GPU, or vsync-bound performance in a WebGPU capture and get ranked render passes with bottleneck analysis and concrete improvement suggestions.
Instructions
Diagnose a capture's performance and return concrete improvement suggestions. Reports the frame budget and a CPU- / GPU- / vsync-bound verdict (needs a live capture for CPU/refresh context and profilePasses:true for GPU time), render passes ranked by GPU time (or fill workload when untimed) each annotated with render-target size/format/MSAA, blend usage, fragment-shader complexity, and a likely bottleneck (fillrate/ROP vs fragment-ALU), plus heuristic issues and ranked suggestions. Best paired with a capture taken via capture_frames({ profilePasses: true, payloads: "none" }).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| captureId | No | Capture id (default: most recent). |