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 | ||
Obsługa aktualizacji stanu sterty.
Podsumowanie
Fieldsem | |
|---|---|
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
|
Metody publiczne | |
|---|---|
void
|
clientDisconnected(ClientImpl client)
Klient odszedł. |
void
|
clientReady(ClientImpl client)
Klient jest gotowy. |
void
|
handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
Punkt wejścia do modułu obsługi fragmentów. |
static
void
|
register(MonitorThread mt)
Zarejestruj pakiety, które mają być wysłane przez klienta. |
static
void
|
sendMPRE(ClientImpl client)
Wyślij do klienta żądanie MPRE (Method PRofiling End). |
static
void
|
sendMPRQ(ClientImpl client)
Wyślij do klienta żądanie MPRQ (Method PRofiling Query). |
static
void
|
sendMPRS(ClientImpl client, String fileName, int bufferSize, int flags)
Wysyłanie do klienta żądania MPRS (Method PRofiling Start). |
static
void
|
sendMPSE(ClientImpl client)
Wyślij do klienta żądanie MPSE (Method Profiling Streaming End). |
static
void
|
sendMPSS(ClientImpl client, int bufferSize, int flags)
Wysyłanie do klienta żądania MPSS (Method Profiling Streaming Start). |
static
void
|
sendSPSE(ClientImpl client)
Wysyła do klienta żądanie SPSE (Sampling Profiling Streaming End). |
static
void
|
sendSPSS(ClientImpl client, int bufferSize, int samplingInterval, TimeUnit samplingIntervalTimeUnits)
Wysyła do klienta żądanie SPSS (Sampling Profiling Streaming Start). |
Fieldsem
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
Metody publiczne
clientDisconnected
public void clientDisconnected (ClientImpl client)
Klient odszedł.
| Parametry | |
|---|---|
client |
ClientImpl |
clientReady
public void clientReady (ClientImpl client)
Klient jest gotowy.
| Parametry | |
|---|---|
client |
ClientImpl |
handleChunk
public void handleChunk (ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
Punkt wejścia do modułu obsługi fragmentów.
| Parametry | |
|---|---|
client |
ClientImpl |
type |
int |
data |
ByteBuffer |
isReply |
boolean |
msgId |
int |
zarejestrować się,
public static void register (MonitorThread mt)
Zarejestruj pakiety, które mają być wysłane przez klienta.
| Parametry | |
|---|---|
mt |
MonitorThread |
sendMPRE
public static void sendMPRE (ClientImpl client)
Wyślij do klienta żądanie MPRE (Method PRofiling End).
| Parametry | |
|---|---|
client |
ClientImpl |
sendMPRQ
public static void sendMPRQ (ClientImpl client)
Wyślij do klienta żądanie MPRQ (Method PRofiling Query).
| Parametry | |
|---|---|
client |
ClientImpl |
sendMPRS
public static void sendMPRS (ClientImpl client, String fileName, int bufferSize, int flags)
Wysyłanie do klienta żądania MPRS (Method PRofiling Start).
Argumenty tej metody zostaną ostatecznie przekazane do metody android.os.Debug.startMethodTracing() na urządzeniu.
| Parametry | |
|---|---|
client |
ClientImpl |
fileName |
String: to nazwa pliku, do którego będą zapisywane dane profilowania (na urządzeniu); |
bufferSize |
int: to żądany rozmiar bufora w bajtach (8 MB to dobra wartość). |
flags |
int: zobacz dokumentację startMethodTracing(); użyj 0, aby zastosować domyślne działanie |
sendMPSE
public static void sendMPSE (ClientImpl client)
Wysyłanie do klienta żądania MPSE (Method Profiling Streaming End).
| Parametry | |
|---|---|
client |
ClientImpl |
sendMPSS
public static void sendMPSS (ClientImpl client, int bufferSize, int flags)
Wysyłanie do klienta żądania MPSS (Method Profiling Streaming Start).
Argumenty tej metody zostaną ostatecznie przekazane do metody android.os.Debug.startMethodTracing() na urządzeniu.
| Parametry | |
|---|---|
client |
ClientImpl |
bufferSize |
int: to żądany rozmiar bufora w bajtach (8 MB to dobra wartość). |
flags |
int: zobacz dokumentację startMethodTracing(); użyj 0, aby zastosować domyślne działanie |
sendSPSE
public static void sendSPSE (ClientImpl client)
Wysyła do klienta żądanie SPSE (Sampling Profiling Streaming End).
| Parametry | |
|---|---|
client |
ClientImpl |
sendSPSS
public static void sendSPSS (ClientImpl client, int bufferSize, int samplingInterval, TimeUnit samplingIntervalTimeUnits)
Wysyła do klienta żądanie SPSS (Sampling Profiling Streaming Start).
| Parametry | |
|---|---|
client |
ClientImpl |
bufferSize |
int: to żądany rozmiar bufora w bajtach (8 MB to dobra wartość). |
samplingInterval |
int: odstęp próbkowania |
samplingIntervalTimeUnits |
TimeUnit: jednostki interwału próbkowania |