Record a running program
perf_attachAttach to an already running program by PID or command-line name, record it for a set duration, and return perf_record's summary while the program keeps running.
Instructions
Records a program that is already running, by pid or by a name in its command line, for seconds, and returns
perf_record's summary; the program keeps running. For games from Steam, CrossOver or any launcher: start the game
first.
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": {
"label": "<label>",
"process": "<process>"
},
"name": "perf_attach"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | name: letters, digits, '.', '_', '-' | |
| fields | No | result paths to keep, dotted: common.frame_pacing | |
| process | Yes | pid, or a name in the program's command line such as Game.exe | |
| seconds | No | recording length, default 20 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||