Get Hotspots
get_hotspotsFind performance bottlenecks by retrieving the top N functions ranked by self-time CPU usage from a V8/Chrome profile.
Instructions
Returns the top N functions by self-time (CPU time spent directly in the function, not its callees). Use this to find performance bottlenecks.
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": {
"profileId": "<profileId>"
},
"name": "get_hotspots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of hotspots to return (default: 10) | |
| profileId | Yes | Profile ID returned by load_profile |