profiler-stack-query
Query a native profile to inspect hang CPU stacks, function callers, thread CPU breakdown, or memory leak details for iOS and Android app debugging.
Instructions
Inspect a native profile after native-profiler-analyze or profiler-load. Modes:
hang_stacks: Full CPU context during a specific hang (by hang_index).
function_callers: Who calls function_name and what it calls.
thread_breakdown: CPU time split by thread, optionally filtered.
leak_stacks: Memory leak details (iOS only). Requires a trace with leak data.
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": {
"device_id": "<device_id>",
"mode": "<mode>"
},
"name": "profiler-stack-query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Query mode; see Modes in the tool description. | |
| top_n | No | Max results to return. Default: 15. Must be greater than 0. | |
| thread | No | Thread filter. thread_breakdown: case-insensitive substring match. function_callers: exact raw thread name (e.g. ".blueskyweb.app"), or "main" for the UI thread; omit to search ALL threads (each result is tagged with its thread). Run thread_breakdown first to see the exact raw names. | |
| device_id | Yes | Target device id from `list-devices` (iOS UDID or Android serial). | |
| hang_index | No | 0-based index into the hang list | |
| object_type | No | Object type filter | |
| function_name | No | Native function name |