Diagnose encoder use
perf_diagnoseDiagnose a saved GPU recording for excessive short encoders per frame, reporting encoder and command-buffer counts, short-encoder share, top GPU labels, idle time, and suggested next actions.
Instructions
Says whether a saved recording splits its GPU work into too many short encoders (the pattern of translation layers
such as DXMT, Mullion or MoltenVK), with the numbers: encoders and command buffers per frame, share of short
encoders, labels with the most GPU time, idle time (read with the FPS: vsync idles too). suggested_actions says
what to call next.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"run": "<run>"
},
"name": "perf_diagnose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | Yes | a run name from perf_runs | |
| fields | No | result paths to keep, dotted: common.frame_pacing | |
| short_us | No | an encoder under this GPU time counts as short: 10, 25 (default), 50, 100, 250, 500 or 1000 | |
| short_share | No | share of short encoders from which the verdict is yes, default 0.25 | |
| min_encoders | No | encoders per frame (median) from which the verdict can be yes, default 4 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||