get_performance_metrics
Retrieve renderer performance metrics including JS heap size, DOM node count, layout recalc counts, and timestamps to analyze page performance in Electron apps.
Instructions
Get renderer performance metrics (Performance.getMetrics): JS heap size, DOM node count, layout/recalc counts, timestamps, etc.
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>",
"pageId": "<pageId>"
},
"name": "get_performance_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | Page id from list_pages. | |
| sessionId | Yes | Session id returned by launch_app. |