trace_query
Queries a .trace table to return paged rows as {column: value}, optionally filtered to one process, enabling inspection of recorded GPU trace data.
Instructions
Returns one page of rows of one table of a .trace as {column: value}, optionally only one process's rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | keep only this process's rows | |
| limit | No | rows per page, default 50, at most 500 | |
| trace | Yes | a run name from perf_runs whose trace_kept is true, or the path of a .trace | |
| offset | No | first row, default 0 | |
| schema | Yes | a table name that trace_tables lists, such as metal-gpu-intervals |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| total | Yes | ||
| offset | Yes | ||
| next_offset | Yes |