adb_perf_snapshot
Capture memory, frame, and CPU performance data for an Android package in one call to profile app behavior.
Instructions
Capture a performance snapshot for a package: memory usage, frame stats, and CPU info in one call.
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": {
"packageName": "<packageName>"
},
"name": "adb_perf_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial | |
| packageName | Yes | Package name to profile (e.g., 'com.example.app') |