analyze_allocations
Profile iOS app memory allocations: record a trace, detect peak memory usage, identify top allocation types, and get fix suggestions.
Instructions
Record an Allocations trace and report peak memory, top allocation types, and fix suggestions.
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": {
"bundle_id": "<bundle_id>",
"device_id": "<device_id>"
},
"name": "analyze_allocations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bundle_id | Yes | App bundle ID, e.g. com.mycompany.myapp | |
| device_id | Yes | Simulator UUID or physical device ID. Use list_devices to find it. | |
| time_limit_seconds | No | Recording duration in seconds (default 20s). |