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 | ||
Processa atualizações de status de heap.
Resumo
Campos | |
|---|---|
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
|
Métodos públicos | |
|---|---|
void
|
clientDisconnected(ClientImpl client)
O cliente saiu. |
void
|
clientReady(ClientImpl client)
O cliente está pronto. |
void
|
handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
Ponto de entrada do gerenciador de partes. |
static
void
|
register(MonitorThread mt)
Registre os pacotes que esperamos receber do cliente. |
static
void
|
sendMPRE(ClientImpl client)
Envie uma solicitação MPRE (Method PRofiling End) para o cliente. |
static
void
|
sendMPRQ(ClientImpl client)
Envie uma solicitação MPRQ (consulta de criação de perfil de método) ao cliente. |
static
void
|
sendMPRS(ClientImpl client, String fileName, int bufferSize, int flags)
Envie uma solicitação MPRS (início da criação de perfil do método) ao cliente. |
static
void
|
sendMPSE(ClientImpl client)
Envie uma solicitação MPSE (Method Profiling Streaming End) ao cliente. |
static
void
|
sendMPSS(ClientImpl client, int bufferSize, int flags)
Envie uma solicitação MPSS (Method Profiling Streaming Start) ao cliente. |
static
void
|
sendSPSE(ClientImpl client)
Envie uma solicitação SPSE (Sampling Profiling Streaming End) ao cliente. |
static
void
|
sendSPSS(ClientImpl client, int bufferSize, int samplingInterval, TimeUnit samplingIntervalTimeUnits)
Envie uma solicitação SPSS (Sampling Profiling Streaming Start) ao cliente. |
Campos
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
Métodos públicos
clientDisconnected
public void clientDisconnected (ClientImpl client)
O cliente saiu.
| Parâmetros | |
|---|---|
client |
ClientImpl |
clientReady
public void clientReady (ClientImpl client)
O cliente está pronto.
| Parâmetros | |
|---|---|
client |
ClientImpl |
handleChunk
public void handleChunk (ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
Ponto de entrada do gerenciador de partes.
| Parâmetros | |
|---|---|
client |
ClientImpl |
type |
int |
data |
ByteBuffer |
isReply |
boolean |
msgId |
int |
registrar
public static void register (MonitorThread mt)
Registre os pacotes que esperamos receber do cliente.
| Parâmetros | |
|---|---|
mt |
MonitorThread |
sendMPRE
public static void sendMPRE (ClientImpl client)
Envie uma solicitação MPRE (Method PRofiling End) para o cliente.
| Parâmetros | |
|---|---|
client |
ClientImpl |
sendMPRQ
public static void sendMPRQ (ClientImpl client)
Envie uma solicitação MPRQ (consulta de criação de perfil de método) ao cliente.
| Parâmetros | |
|---|---|
client |
ClientImpl |
sendMPRS
public static void sendMPRS (ClientImpl client, String fileName, int bufferSize, int flags)
Envie uma solicitação MPRS (início da criação de perfil do método) ao cliente.
Os argumentos desse método serão transmitidos para android.os.Debug.startMethodTracing() no dispositivo.
| Parâmetros | |
|---|---|
client |
ClientImpl |
fileName |
String: é o nome do arquivo em que os dados de criação de perfil serão gravados (no
dispositivo); |
bufferSize |
int: é o tamanho de buffer desejado em bytes (8 MB é bom) |
flags |
int: consulte a documentação de startMethodTracing(). Use 0 para o comportamento padrão. |
sendMPSE
public static void sendMPSE (ClientImpl client)
Envie uma solicitação MPSE (Method Profiling Streaming End) ao cliente.
| Parâmetros | |
|---|---|
client |
ClientImpl |
sendMPSS
public static void sendMPSS (ClientImpl client, int bufferSize, int flags)
Envie uma solicitação MPSS (Method Profiling Streaming Start) ao cliente.
Os argumentos desse método serão transmitidos para android.os.Debug.startMethodTracing() no dispositivo.
| Parâmetros | |
|---|---|
client |
ClientImpl |
bufferSize |
int: é o tamanho de buffer desejado em bytes (8 MB é bom) |
flags |
int: consulte a documentação de startMethodTracing(). Use 0 para o comportamento padrão. |
sendSPSE
public static void sendSPSE (ClientImpl client)
Envie uma solicitação SPSE (Sampling Profiling Streaming End) ao cliente.
| Parâmetros | |
|---|---|
client |
ClientImpl |
sendSPSS
public static void sendSPSS (ClientImpl client, int bufferSize, int samplingInterval, TimeUnit samplingIntervalTimeUnits)
Envie uma solicitação SPSS (Sampling Profiling Streaming Start) ao cliente.
| Parâmetros | |
|---|---|
client |
ClientImpl |
bufferSize |
int: é o tamanho de buffer desejado em bytes (8 MB é bom) |
samplingInterval |
int: intervalo de amostragem |
samplingIntervalTimeUnits |
TimeUnit: unidades do intervalo de amostragem |