ThreadInfo
public
final
class
ThreadInfo
extends Object
implements
IStackTraceInfo
| java.lang.Object | |
| ↳ | com.android.tradefed.device.server.ThreadInfo |
Contiene le informazioni di un thread.
Riepilogo
Metodi pubblici | |
|---|---|
long
|
getStackCallTime()
Restituisce l'ora approssimativa dei dati dello stacktrace. |
StackTraceElement[]
|
getStackTrace()
Restituisce la traccia dello stack. |
int
|
getStatus()
Restituisce lo stato del thread della VM. |
int
|
getStime()
Restituisce il tempo di sistema cumulativo. |
int
|
getThreadId()
Restituisce l'ID del thread. |
String
|
getThreadName()
Restituisce il nome del thread. |
int
|
getTid()
Restituisce l'ID sistema. |
int
|
getUtime()
Restituisce il tempo totale di utilizzo da parte dell'utente. |
boolean
|
isDaemon()
Restituisce un valore che indica se si tratta di un thread demone. |
void
|
setStackCall(StackTraceElement[] trace)
Imposta la chiamata dello stack del thread. |
void
|
setThreadName(String name)
|
void
|
updateThread(int status, int tid, int utime, int stime, boolean isDaemon)
Impostato con i valori ottenuti da un blocco THST. |
Metodi pubblici
getStackCallTime
public long getStackCallTime ()
Restituisce l'ora approssimativa dei dati dello stacktrace.
| Ritorni | |
|---|---|
long |
|
Vedi anche:
getStackTrace
public StackTraceElement[] getStackTrace ()
Restituisce la traccia dello stack. Può essere null.
| Ritorni | |
|---|---|
StackTraceElement[] |
|
getStatus
public int getStatus ()
Restituisce lo stato del thread della VM.
| Ritorni | |
|---|---|
int |
|
getStime
public int getStime ()
Restituisce il tempo di sistema cumulativo.
| Ritorni | |
|---|---|
int |
|
getThreadId
public int getThreadId ()
Restituisce l'ID del thread.
| Ritorni | |
|---|---|
int |
|
getThreadName
public String getThreadName ()
Restituisce il nome del thread.
| Ritorni | |
|---|---|
String |
|
getTid
public int getTid ()
Restituisce l'ID sistema.
| Ritorni | |
|---|---|
int |
|
getUtime
public int getUtime ()
Restituisce il tempo totale di utilizzo da parte dell'utente.
| Ritorni | |
|---|---|
int |
|
isDaemon
public boolean isDaemon ()
Restituisce un valore che indica se si tratta di un thread demone.
| Ritorni | |
|---|---|
boolean |
|
setStackCall
public void setStackCall (StackTraceElement[] trace)
Imposta la chiamata dello stack del thread.
| Parametri | |
|---|---|
trace |
StackTraceElement: informazioni sullo stack di chiamate. |
setThreadName
public void setThreadName (String name)
| Parametri | |
|---|---|
name |
String |
updateThread
public void updateThread (int status,
int tid,
int utime,
int stime,
boolean isDaemon)Impostato con i valori ottenuti da un blocco THST.
| Parametri | |
|---|---|
status |
int |
tid |
int |
utime |
int |
stime |
int |
isDaemon |
boolean |