adb_heap_dump
Trigger a heap dump from a running Android process for memory analysis. Pull the resulting .hprof file using am dumpheap.
Instructions
Capture a heap dump from a running process for memory analysis. Triggers am dumpheap and pulls the resulting .hprof file. Requires the target process PID or package name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Process PID (number) or package name (e.g., com.example.app) | |
| filename | No | Output filename (default: heap_<target>_<timestamp>.hprof) | |
| device | No | Device serial |