ThreadInfo

public final class ThreadInfo
extends Object implements IStackTraceInfo

java.lang.Object
   ↳ com.android.tradefed.device.server.ThreadInfo


保存线程信息。

摘要

公共方法

long getStackCallTime()

返回堆栈轨迹数据的近似时间。

StackTraceElement[] getStackTrace()

返回堆栈轨迹。

int getStatus()

返回虚拟机线程状态。

int getStime()

返回累计系统时间。

int getThreadId()

返回线程的 ID。

String getThreadName()

返回线程的名称。

int getTid()

返回系统 tid。

int getUtime()

返回累计用户时间。

boolean isDaemon()

返回此线程是否为守护进程线程。

void setStackCall(StackTraceElement[] trace)

设置线程的堆栈调用。

void setThreadName(String name)
void updateThread(int status, int tid, int utime, int stime, boolean isDaemon)

使用从 THST 块获取的值进行设置。

公共方法

getStackCallTime

public long getStackCallTime ()

返回堆栈轨迹数据的大致时间。

返回
long

另见:

getStackTrace

public StackTraceElement[] getStackTrace ()

返回堆栈轨迹。可以是 null

返回
StackTraceElement[]

getStatus

public int getStatus ()

返回虚拟机线程状态。

返回
int

getStime

public int getStime ()

返回累计系统时间。

返回
int

getThreadId

public int getThreadId ()

返回线程的 ID。

返回
int

getThreadName

public String getThreadName ()

返回线程的名称。

返回
String

getTid

public int getTid ()

返回系统 tid。

返回
int

getUtime

public int getUtime ()

返回累计用户时间。

返回
int

isDaemon

public boolean isDaemon ()

返回此线程是否为守护进程线程。

返回
boolean

setStackCall

public void setStackCall (StackTraceElement[] trace)

设置线程的堆栈调用。

参数
trace StackTraceElement:stackcall 信息。

setThreadName

public void setThreadName (String name)

参数
name String

updateThread

public void updateThread (int status, 
                int tid, 
                int utime, 
                int stime, 
                boolean isDaemon)

使用从 THST 块获取的值进行设置。

参数
status int

tid int

utime int

stime int

isDaemon boolean