Break down Metal allocations by type
perf_memory_breakdownBreaks down saved Metal recording allocations by type into allocated, live, and gone memory, exposing churn behind spikes or stalls. Reports totals, live memory by mode, allocation rate, and peak.
Instructions
Breaks down the Metal allocations of a saved recording by type (texture, buffer, heap...): allocated, still live and
gone per type. A small live share of a large allocated size is churn, the pattern behind a memory spike or a
stall. Also totals, live memory by mode, allocation rate and peak. Needs a Metal recording above tier light.
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_memory_breakdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | Yes | a run name from perf_runs | |
| top | No | how many resource types to keep, the largest allocated first, default 10 | |
| fields | No | result paths to keep, dotted: common.frame_pacing |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||