tools/
directory of the SDK. DDMS works with both the emulator and a connected device. If both are connected and running simultaneously, DDMS defaults to the emulator.- From Eclipse: Click Window > Open Perspective > Other... > DDMS.
- From the command line: Type
ddms
(or./ddms
on Mac/Linux) from thetools/
directoryHow DDMS Interacts with a Debugger
When DDMS starts, it connects to adb. When a device is connected, a VM monitoring service is created betweenadb
and DDMS, which notifies DDMS when a VM on the device is started or terminated. Once a VM is running, DDMS retrieves the the VM's process ID (pid), viaadb
, and opens a connection to the VM's debugger, through the adb daemon (adbd) on the device. DDMS can now talk to the VM using a custom wire protocolDDMS features summary:/when we will use DDMS ?For the following purpose, we can use DDMS.1.Viewing heap usage for a process2.Tracking memory allocation of objects3.Working with emulator or device's file systemwe can copy video files/files to emulator or device with DDMS4.using logcat : logs can be viewed and filtered based on LOG_TAGS5.monitoring network traffic information
Labels: ddms