Export frames to Perfetto
perf_export_traceExports a recording's GPU frames as a .chrome-trace file for viewing in ui.perfetto.dev or chrome://tracing, one slice per frame, and returns the file name and frame count.
Instructions
Writes a recording's GPU frames as <run>.chrome-trace in the runs directory, for ui.perfetto.dev and
chrome://tracing: one slice per GPU frame. Returns the file name and the number of frames.
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_export_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | Yes | a run name from perf_runs | |
| fields | No | result paths to keep, dotted: common.frame_pacing |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||