profile_leaks
Record heap snapshots or re-analyze existing traces to detect memory leaks, providing leaked object types, sizes, responsible libraries, and backtraces.
Instructions
Record and detect memory leaks using the Leaks template. Returns: Leaked object types, sizes, responsible libraries, and backtraces. The Leaks instrument takes periodic heap snapshots — longer recordings improve detection. Pass trace_path to re-analyze an existing trace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| process | No | Process name or PID to attach to | |
| launch_path | No | Path to .app bundle to launch | |
| device | No | Device name or UDID | |
| duration | No | Recording duration — 30s+ recommended | 30s |
| trace_path | No | Path to existing .trace file to re-analyze (skips recording) |