ThreadInfo
public
final
class
ThreadInfo
extends Object
implements
IStackTraceInfo
| java.lang.Object | |
| ↳ | com.android.tradefed.device.server.ThreadInfo |
Holds a thread information.
Summary
Public methods | |
|---|---|
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. |
void
|
setStackCall(StackTraceElement[] trace)
Sets the stack call of the thread. |
void
|
setThreadName(String name)
|
void
|
updateThread(int status, int tid, int utime, int stime, boolean isDaemon)
Set with the values we get from a THST chunk. |
Public methods
getStackCallTime
public long getStackCallTime ()
Returns the approximate time of the stacktrace data.
| Returns | |
|---|---|
long |
|
See also:
getStackTrace
public StackTraceElement[] getStackTrace ()
Returns the stack trace. This can be null.
| Returns | |
|---|---|
StackTraceElement[] |
|
getStatus
public int getStatus ()
Returns the VM thread status.
| Returns | |
|---|---|
int |
|
getStime
public int getStime ()
Returns the cumulative system time.
| Returns | |
|---|---|
int |
|
getThreadId
public int getThreadId ()
Returns the thread's ID.
| Returns | |
|---|---|
int |
|
getThreadName
public String getThreadName ()
Returns the thread's name.
| Returns | |
|---|---|
String |
|
getTid
public int getTid ()
Returns the system tid.
| Returns | |
|---|---|
int |
|
getUtime
public int getUtime ()
Returns the cumulative user time.
| Returns | |
|---|---|
int |
|
isDaemon
public boolean isDaemon ()
Returns whether this is a daemon thread.
| Returns | |
|---|---|
boolean |
|
setStackCall
public void setStackCall (StackTraceElement[] trace)
Sets the stack call of the thread.
| Parameters | |
|---|---|
trace |
StackTraceElement: stackcall information. |
setThreadName
public void setThreadName (String name)
| Parameters | |
|---|---|
name |
String |
updateThread
public void updateThread (int status,
int tid,
int utime,
int stime,
boolean isDaemon)Set with the values we get from a THST chunk.
| Parameters | |
|---|---|
status |
int |
tid |
int |
utime |
int |
stime |
int |
isDaemon |
boolean |