Profile cook cost
profile_cook_costDiagnose intermittent stalls by sampling cook times over a window and ranking hotspot nodes by p95 cook time.
Instructions
Read-only: sample cook times over a window (N samples × intervalMs) and rank hotspot nodes by p95 cook time. Use this to diagnose intermittent stalls that a single get_td_performance snapshot misses. Returns {path, samples, intervalMs, targetFps, frameBudgetMs, windowMs, hotspots[], warnings[]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scopePath | No | Network root to profile (recursive). | /project1 |
| samples | No | How many snapshots to take across the window. | |
| intervalMs | No | Delay between snapshots in milliseconds (>= one frame at 60fps). | |
| topN | No | How many hotspots to return, ranked desc by p95. | |
| targetFps | No | Forwarded to get_td_performance for the per-frame budget annotation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| samples | Yes | ||
| intervalMs | Yes | ||
| targetFps | Yes | ||
| frameBudgetMs | Yes | ||
| windowMs | Yes | ||
| hotspots | Yes | ||
| warnings | Yes |