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 | ||
Обработка обновлений состояния кучи.
Краткое содержание
Поля | |
|---|---|
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 |
Публичные методы | |
|---|---|
void | clientDisconnected ( ClientImpl client)Клиент ушел. |
void | clientReady ( ClientImpl client)Клиент готов. |
void | handleChunk ( ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)Точка входа обработчика фрагментов. |
static void | register ( MonitorThread mt)Зарегистрируйтесь для получения пакетов, которые мы ожидаем получить от клиента. |
static void | sendMPRE ( ClientImpl client)Отправьте клиенту запрос MPRE (Method PROfiling End). |
static void | sendMPRQ ( ClientImpl client)Отправьте клиенту запрос MPRQ (запрос профилирования метода). |
static void | sendMPRS ( ClientImpl client, String fileName, int bufferSize, int flags)Отправьте клиенту запрос MPRS (Method PROfiling Start). |
static void | sendMPSE ( ClientImpl client)Отправьте клиенту запрос MPSE (Method Profiling Streaming End). |
static void | sendMPSS ( ClientImpl client, int bufferSize, int flags)Отправьте клиенту запрос MPSS (Method Profiling Streaming Start). |
static void | sendSPSE ( ClientImpl client)Отправьте клиенту запрос SPSE (Sampling Profiling Streaming End). |
static void | sendSPSS ( ClientImpl client, int bufferSize, int samplingInterval, TimeUnit samplingIntervalTimeUnits)Отправьте клиенту запрос SPSS (Sampling Profiling Streaming Start). |
Поля
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
Публичные методы
клиентОтключен
public void clientDisconnected (ClientImpl client)
Клиент ушел.
| Параметры | |
|---|---|
client | ClientImpl |
handleChunk
public void handleChunk (ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
Точка входа обработчика фрагментов.
| Параметры | |
|---|---|
client | ClientImpl |
type | int |
data | ByteBuffer |
isReply | boolean |
msgId | int |
регистр
public static void register (MonitorThread mt)
Зарегистрируйтесь для получения пакетов, которые мы ожидаем получить от клиента.
| Параметры | |
|---|---|
mt | MonitorThread |
sendMPRE
public static void sendMPRE (ClientImpl client)
Отправьте клиенту запрос MPRE (Method PROfiling End).
| Параметры | |
|---|---|
client | ClientImpl |
sendMPRQ
public static void sendMPRQ (ClientImpl client)
Отправьте клиенту запрос MPRQ (запрос профилирования метода).
| Параметры | |
|---|---|
client | ClientImpl |
sendMPRS
public static void sendMPRS (ClientImpl client, String fileName, int bufferSize, int flags)
Отправьте клиенту запрос MPRS (Method PROfiling Start).
Аргументы этого метода в конечном итоге будут переданы в android.os.Debug.startMethodTracing() на устройстве.
| Параметры | |
|---|---|
client | ClientImpl |
fileName | String : имя файла, в который будут записаны данные профилирования (на устройстве); |
bufferSize | int : желаемый размер буфера в байтах (8 МБ подойдет) |
flags | int : см. документацию по startMethodTracing(); используйте 0 для поведения по умолчанию |
sendMPSE
public static void sendMPSE (ClientImpl client)
Отправьте клиенту запрос MPSE (Method Profiling Streaming End).
| Параметры | |
|---|---|
client | ClientImpl |
sendMPSS
public static void sendMPSS (ClientImpl client, int bufferSize, int flags)
Отправьте клиенту запрос MPSS (Method Profiling Streaming Start).
Аргументы этого метода в конечном итоге будут переданы в android.os.Debug.startMethodTracing() на устройстве.
| Параметры | |
|---|---|
client | ClientImpl |
bufferSize | int : желаемый размер буфера в байтах (8 МБ подойдет) |
flags | int : см. документацию по startMethodTracing(); используйте 0 для поведения по умолчанию |
sendSPSE
public static void sendSPSE (ClientImpl client)
Отправьте клиенту запрос SPSE (Sampling Profiling Streaming End).
| Параметры | |
|---|---|
client | ClientImpl |
sendSPSS
public static void sendSPSS (ClientImpl client, int bufferSize, int samplingInterval, TimeUnit samplingIntervalTimeUnits)
Отправьте клиенту запрос SPSS (Sampling Profiling Streaming Start).
| Параметры | |
|---|---|
client | ClientImpl |
bufferSize | int : желаемый размер буфера в байтах (8 МБ подойдет) |
samplingInterval | int : интервал выборки |
samplingIntervalTimeUnits | TimeUnit : единицы измерения интервала выборки |