profile_memory
Record and analyze memory allocations to identify total memory usage and largest allocators. Supports attaching to a process, launching an app, or re-analyzing an existing trace.
Instructions
Record and analyze memory allocations. Returns: Allocation counts by category, total memory, largest allocators. 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 | 15s |
| trace_path | No | Path to existing .trace file to re-analyze (skips recording) |