HandleProfiling
public
final
class
HandleProfiling
extends ChunkHandler
| java.lang.Object | |||
| ↳ | com.android.tradefed.device.server.jdwp.JdwpInterceptor | ||
| ↳ | com.android.tradefed.device.server.jdwp.chunkhandler.ChunkHandler | ||
| ↳ | com.android.tradefed.device.server.jdwp.chunkhandler.HandleProfiling | ||
Gestire gli aggiornamenti dello stato dell'heap.
Riepilogo
Campi | |
|---|---|
public
static
final
int |
CHUNK_FAIL
|
public
static
final
int |
CHUNK_MPRE
|
public
static
final
int |
CHUNK_MPRQ
|
public
static
final
int |
CHUNK_MPRS
|
public
static
final
int |
CHUNK_MPSE
|
public
static
final
int |
CHUNK_MPSS
|
public
static
final
int |
CHUNK_SPSE
|
public
static
final
int |
CHUNK_SPSS
|
Metodi pubblici | |
|---|---|
void
|
clientDisconnected(ClientImpl client)
Il client è stato chiuso. |
void
|
clientReady(ClientImpl client)
Il client è pronto. |
void
|
handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
Punto di ingresso del gestore dei chunk. |
static
void
|
register(MonitorThread mt)
Registra i pacchetti che prevediamo di ricevere dal client. |
static
void
|
sendMPRE(ClientImpl client)
Invia una richiesta MPRE (Method PRofiling End) al client. |
static
void
|
sendMPRQ(ClientImpl client)
Invia una richiesta MPRQ (Method PRofiling Query) al cliente. |
static
void
|
sendMPRS(ClientImpl client, String fileName, int bufferSize, int flags)
Invia una richiesta MPRS (Method PRofiling Start) al client. |
static
void
|
sendMPSE(ClientImpl client)
Invia una richiesta MPSE (Method Profiling Streaming End) al client. |
static
void
|
sendMPSS(ClientImpl client, int bufferSize, int flags)
Invia una richiesta MPSS (Method Profiling Streaming Start) al client. |
static
void
|
sendSPSE(ClientImpl client)
Invia una richiesta SPSE (Sampling Profiling Streaming End) al cliente. |
static
void
|
sendSPSS(ClientImpl client, int bufferSize, int samplingInterval, TimeUnit samplingIntervalTimeUnits)
Invia una richiesta SPSS (Sampling Profiling Streaming Start) al client. |
Campi
CHUNK_FAIL
public static final int CHUNK_FAIL
CHUNK_MPRE
public static final int CHUNK_MPRE
CHUNK_MPRQ
public static final int CHUNK_MPRQ
CHUNK_MPRS
public static final int CHUNK_MPRS
CHUNK_MPSE
public static final int CHUNK_MPSE
CHUNK_MPSS
public static final int CHUNK_MPSS
CHUNK_SPSE
public static final int CHUNK_SPSE
CHUNK_SPSS
public static final int CHUNK_SPSS
Metodi pubblici
clientDisconnected
public void clientDisconnected (ClientImpl client)
Il client è stato chiuso.
| Parametri | |
|---|---|
client |
ClientImpl |
clientReady
public void clientReady (ClientImpl client)
Il client è pronto.
| Parametri | |
|---|---|
client |
ClientImpl |
handleChunk
public void handleChunk (ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
Punto di ingresso del gestore dei chunk.
| Parametri | |
|---|---|
client |
ClientImpl |
type |
int |
data |
ByteBuffer |
isReply |
boolean |
msgId |
int |
registrare
public static void register (MonitorThread mt)
Registra i pacchetti che prevediamo di ricevere dal client.
| Parametri | |
|---|---|
mt |
MonitorThread |
sendMPRE
public static void sendMPRE (ClientImpl client)
Invia una richiesta MPRE (Method PRofiling End) al client.
| Parametri | |
|---|---|
client |
ClientImpl |
sendMPRQ
public static void sendMPRQ (ClientImpl client)
Invia una richiesta MPRQ (Method PRofiling Query) al cliente.
| Parametri | |
|---|---|
client |
ClientImpl |
sendMPRS
public static void sendMPRS (ClientImpl client, String fileName, int bufferSize, int flags)
Invia una richiesta MPRS (Method PRofiling Start) al client.
Gli argomenti di questo metodo verranno alla fine passati a android.os.Debug.startMethodTracing() sul dispositivo.
| Parametri | |
|---|---|
client |
ClientImpl |
fileName |
String: è il nome del file in cui verranno scritti i dati di profilazione (sul dispositivo); |
bufferSize |
int: è la dimensione del buffer desiderata in byte (8 MB è un buon valore) |
flags |
int: consulta la documentazione di startMethodTracing(); utilizza 0 per il comportamento predefinito |
sendMPSE
public static void sendMPSE (ClientImpl client)
Invia una richiesta MPSE (Method Profiling Streaming End) al client.
| Parametri | |
|---|---|
client |
ClientImpl |
sendMPSS
public static void sendMPSS (ClientImpl client, int bufferSize, int flags)
Invia una richiesta MPSS (Method Profiling Streaming Start) al client.
Gli argomenti di questo metodo verranno alla fine passati a android.os.Debug.startMethodTracing() sul dispositivo.
| Parametri | |
|---|---|
client |
ClientImpl |
bufferSize |
int: è la dimensione del buffer desiderata in byte (8 MB è un buon valore) |
flags |
int: consulta la documentazione di startMethodTracing(); utilizza 0 per il comportamento predefinito |
sendSPSE
public static void sendSPSE (ClientImpl client)
Invia una richiesta SPSE (Sampling Profiling Streaming End) al cliente.
| Parametri | |
|---|---|
client |
ClientImpl |
sendSPSS
public static void sendSPSS (ClientImpl client, int bufferSize, int samplingInterval, TimeUnit samplingIntervalTimeUnits)
Invia una richiesta SPSS (Sampling Profiling Streaming Start) al client.
| Parametri | |
|---|---|
client |
ClientImpl |
bufferSize |
int: è la dimensione del buffer desiderata in byte (8 MB è un buon valore) |
samplingInterval |
int: intervallo di campionamento |
samplingIntervalTimeUnits |
TimeUnit: unità per l'intervallo di campionamento |