trace_app
Capture a performance trace of an application using xctrace to diagnose performance issues. Specify the app path, then optional duration, template, output, and start suspended settings.
Instructions
Captures a performance trace of an application using xctrace
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": {
"appPath": "<appPath>"
},
"name": "trace_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appPath | Yes | Path to the application to trace | |
| duration | No | Duration of the trace in seconds (default: 10) | |
| template | No | Trace template to use (default: 'Time Profiler') | |
| outputPath | No | Path where to save the trace file (default: app_trace.trace in active directory) | |
| startSuspended | No | Start the application in a suspended state |