com.android.ddmlib
Class ThreadInfo

java.lang.Object
  extended by com.android.ddmlib.ThreadInfo
All Implemented Interfaces:
IStackTraceInfo

public final class ThreadInfo
extends Object
implements IStackTraceInfo

Holds a thread information.


Method Summary
 long getStackCallTime()
          Returns the approximate time of the stacktrace data.
 StackTraceElement[] getStackTrace()
          Returns the stack trace.
 int getStatus()
          Returns the VM thread status.
 int getStime()
          Returns the cumulative system time.
 int getThreadId()
          Returns the thread's ID.
 String getThreadName()
          Returns the thread's name.
 int getTid()
          Returns the system tid.
 int getUtime()
          Returns the cumulative user time.
 boolean isDaemon()
          Returns whether this is a daemon thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getThreadId

public int getThreadId()
Returns the thread's ID.


getThreadName

public String getThreadName()
Returns the thread's name.


getTid

public int getTid()
Returns the system tid.


getStatus

public int getStatus()
Returns the VM thread status.


getUtime

public int getUtime()
Returns the cumulative user time.


getStime

public int getStime()
Returns the cumulative system time.


isDaemon

public boolean isDaemon()
Returns whether this is a daemon thread.


getStackTrace

public StackTraceElement[] getStackTrace()
Description copied from interface: IStackTraceInfo
Returns the stack trace. This can be null.

Specified by:
getStackTrace in interface IStackTraceInfo

getStackCallTime

public long getStackCallTime()
Returns the approximate time of the stacktrace data.

See Also:
getStackTrace()


Copyright © 2008-2012. All Rights Reserved.