Threads

The threads view has a list of threads running in the process of the target VM. To reduce the amount of data sent over the wire, the thread updates are only sent when explicitly enabled by toggling the "threads" button in the toolbar. This toggle is maintained per VM. This tab includes the following information:

• ID - a VM-assigned unique thread ID. In Dalvik, these are odd numbers starting from 3.

• Tid - the Linux thread ID. For the main thread in a process, this will match the process ID.

• Status - the VM thread status. Daemon threads are shown with an asterisk (*). This will be one of the following: o running - executing application code o sleeping - called Thread.sleep() o monitor - waiting to acquire a monitor lock o wait - in Object.wait() o native - executing native code o vmwait - waiting on a VM resource o zombie - thread is in the process of dying o init - thread is initializing (you shouldn't see this) o starting - thread is about to start (you shouldn't see this either)

• utime - cumulative time spent executing user code, in "jiffies" (usually 10ms). Only available under Linux.

• stime - cumulative time spent executing system code, in "jiffies" (usually 10ms).

"ID" and "Name" are set when the thread is started. The remaining fields are updated periodically (default is every 4 seconds). VM Heap

Displays some heap stats, updated during garbage collection. If, when a VM is selected, the VM Heap view says that heap updates are not enabled, click the "Show heap updates" button, located in the top-left toolbar. Back in the VM Heap view, click Cause GC to perform garbage collection and update the heap stats.

0 0

Post a comment