Count a trace's rows
trace_countCount table rows in a Metal GPU trace, overall and per process, to identify empty tables that need another instrument or Xcode rather than more pages.
Instructions
Counts the rows of tables of a recording, in all and per process: a table with 0 rows needs another instrument or Xcode, not a bigger page. Reads the .trace when kept, else the tables file.
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": {
"trace": "<trace>"
},
"name": "trace_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trace | Yes | a run name from perf_runs with trace_kept or tables_kept true, or a .trace path | |
| fields | No | result paths to keep, dotted: common.frame_pacing | |
| tables | No | table names from trace_tables; default the tables that matter for a translation layer |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||