Record heap allocation sampling
profiler_heap_samplingStart or stop heap allocation sampling to analyze memory usage and detect leaks in Chrome tabs.
Instructions
Start or stop CDP HeapProfiler allocation sampling.
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": {
"sessionId": "<sessionId>",
"action": "<action>"
},
"name": "profiler_heap_sampling"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| sessionId | Yes | ||
| targetSessionId | No | ||
| samplingInterval | No |