Performance Overlay
perf_overlayDraw a recording's CPU or memory track as a small chart with a moving playhead (spikes in red).
Instructions
Draw a recording's CPU or memory track as a small chart with a moving playhead (spikes in red).
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": {
"input": "<input>"
},
"name": "perf_overlay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| perf | No | Its .perf.jsonl (default: next to input). | |
| input | Yes | A recording made with perf: true. | |
| width | No | Chart width px (default video/4). | |
| corner | No | Default top_right. | |
| metric | No | Default cpu (the app's) if sampled, else sysCpu. | |
| output | No | Optional output path. Defaults under SCREENCAST_HOME/edits. | |
| overwrite | No | Allow replacing an existing file at the output path (default false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outputPath | Yes | Path of the file written. |