The tool names stay the same across browsers. See browser selection and Firefox and Zen exceptions before choosing an operation.
Heap snapshots, class diffs, retainers and allocation sampling need Chromium developer mode because extensions cannot use HeapProfiler. usage and growth also work in Chromium extension mode. Firefox and Zen do not support this tool.
Parameters
integer
Target tab id from browser_tabs, which lists tabs across all windows. Defaults to the agent’s most recently opened usable tab, or the only usable tab. Otherwise select a listed tabId.
enum
required
One of:
snapshot, compare, retainers, sampling, usage, growth, list.string
string
string
integer
enum
For sampling One of:
start, stop.integer
number
growth: duration, default 10
boolean
Collect garbage first (default true for snapshot)
Example
Growth between two snapshots
Sample heap usage for 20 seconds
