analyze_call_tree_path
Find all callers of a specific function in a V8 CPU profile and see how often each invokes it, revealing the code paths that contribute to slowdowns.
Instructions
Finds all callers of a specific function in a V8 CPU profile and returns how often each caller invoked it. Accepts partial, case-insensitive function name matching. Use to answer: what is calling my slow function and how many times?
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": {
"profile_path": "<profile_path>",
"function_name": "<function_name>"
},
"name": "analyze_call_tree_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_callers | No | Number of top callers to return (default: 5) | |
| profile_path | Yes | Absolute path to the .cpuprofile file | |
| function_name | Yes | Function name to search for (partial match, case-insensitive) |