profile_cpu
Profile CPU performance of iOS/macOS apps using Time Profiler. Returns top CPU hotspots with severity classification for optimization.
Instructions
Record and analyze CPU performance using Time Profiler. Returns: Top CPU hotspots with severity classification and actionable summary. Pass trace_path to re-analyze an existing trace without re-recording.
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 or UDID (omit for host Mac) | |
| duration | No | Recording duration (e.g., '10s', '30s', '1m') | 15s |
| trace_path | No | Path to existing .trace file to re-analyze (skips recording) |