start_profiling
Start recording an Instruments trace to profile iOS/macOS app performance. Pair with stop_profiling to capture user interactions and get parsed performance data.
Instructions
Start recording an Instruments trace and return immediately. The user interacts with the app manually while recording runs in the background. Call stop_profiling when done to end the recording and get parsed results.
This is the recommended workflow for profiling real user interactions:
start_profiling → agent starts recording
User scrolls, taps, navigates in the app
stop_profiling → agent stops recording, parses trace, returns performance data
Max recording time is 5 minutes (safety limit). Recording stops automatically if not stopped manually.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| process | No | Process name or PID to attach to | |
| launch_path | No | Path to .app bundle to launch and profile | |
| device | No | Device name, UDID, or 'booted' for simulator | |
| template | No | Instruments template (e.g., 'Time Profiler', 'Allocations', 'Leaks') | Time Profiler |
| max_duration | No | Safety time limit (default: '5m'). Recording stops automatically after this. | 5m |