xctrace_record
Record an Instruments trace using a specified template to analyze system performance and app behavior. Attach to processes or launch commands for targeted profiling.
Instructions
Record a new Instruments trace using the specified template.
Args: template: Template name or path to use for recording output_path: Path to save the trace file device: Device name or UDID to record on time_limit: Time limit for recording (e.g., '5s', '1m') all_processes: Record all processes on the system attach_process: Process name or PID to attach to launch_command: Command and arguments to launch and record
Returns: Recording result
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": {
"template": "<template>"
},
"name": "xctrace_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | Yes | ||
| output_path | No | ||
| device | No | ||
| time_limit | No | ||
| all_processes | No | ||
| attach_process | No | ||
| launch_command | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |