DroidMind

by hyperb1iss
Verified

dump_heap

Capture heap dumps from running Android processes to diagnose memory issues, detect leaks, and analyze object relationships. Supports both Java and native heap dumps with configurable output paths and timeouts.

Instructions

Capture a heap dump from a running process on the device.

Heap dumps are useful for diagnosing memory issues, leaks, and understanding object relationships in running applications.

Args: serial: Device serial number ctx: MCP context package_or_pid: App package name or process ID to dump output_path: Where to save the heap dump (leave empty for default location) native: Whether to capture a native heap dump (vs Java heap) timeout_seconds: Maximum time to wait for the heap dump to complete (in seconds)

Returns: Path to the saved heap dump or an error message

Input Schema

NameRequiredDescriptionDefault
nativeNo
output_pathNo
package_or_pidYes
serialYes
timeout_secondsNo

Input Schema (JSON Schema)

{ "properties": { "native": { "default": false, "title": "Native", "type": "boolean" }, "output_path": { "default": "", "title": "Output Path", "type": "string" }, "package_or_pid": { "title": "Package Or Pid", "type": "string" }, "serial": { "title": "Serial", "type": "string" }, "timeout_seconds": { "default": 120, "title": "Timeout Seconds", "type": "integer" } }, "required": [ "serial", "package_or_pid" ], "title": "dump_heapArguments", "type": "object" }
ID: p03zdsi6ol