Drill into the call tree
get_call_treeGet a pruned call tree from a Spark profile, filtering frames below a threshold and limiting depth. Focus on specific paths with rootPath to diagnose thread CPU usage.
Instructions
Pruned call tree for a thread. Children below minPercent of the thread total are dropped and depth is capped. Pass rootPath (an array of 'Class.method' labels/substrings) to descend into a specific subtree before expanding.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread | No | Thread name (default 'Server thread'). | |
| maxDepth | No | ||
| rootPath | No | Descend into this frame path first, e.g. ['runServer','tickChildren']. | |
| profileId | Yes | The id returned by load_profile. | |
| minPercent | No | Drop frames below this % of thread total. |