Android meminfo
android_meminfoRead app's PSS and breakdown to detect memory leaks; app must be running.
Instructions
Read an app’s memory usage (dumpsys meminfo <package>): TOTAL PSS in kilobytes plus the App Summary breakdown (Java heap, native heap, code, stack, graphics) and the largest mapping categories. PSS is the number to watch across repeated calls — a steadily climbing TOTAL PSS while the app sits idle is the Android shape of a leak. The app must be RUNNING; when it is not, the tool says so instead of reporting zero.
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": {
"package_name": "<package_name>"
},
"name": "android_meminfo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Target adb serial. Defaults to the streamed device, else the only online one. | |
| package_name | Yes | Android package to measure, e.g. "com.example.app". |