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 (메서드 프로파일링 시작) 요청을 전송합니다. |
static
void
|
sendMPSE(ClientImpl client)
클라이언트에 MPSE (메서드 프로파일링 스트리밍 종료) 요청을 전송합니다. |
static
void
|
sendMPSS(ClientImpl client, int bufferSize, int flags)
클라이언트에 MPSS (메서드 프로파일링 스트리밍 시작) 요청을 전송합니다. |
static
void
|
sendSPSE(ClientImpl client)
클라이언트에 SPSE (샘플링 프로파일링 스트리밍 종료) 요청을 전송합니다. |
static
void
|
sendSPSS(ClientImpl client, int bufferSize, int samplingInterval, TimeUnit samplingIntervalTimeUnits)
클라이언트에 SPSS (샘플링 프로파일링 스트리밍 시작) 요청을 전송합니다. |
필드
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
공개 메서드
clientDisconnected
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 |
register
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 (메서드 프로파일링 시작) 요청을 전송합니다.
이 메서드의 인수는 결국 기기에서 android.os.Debug.startMethodTracing()에 전달됩니다.
| 매개변수 | |
|---|---|
client |
ClientImpl |
fileName |
String: 프로파일링 데이터가 작성될 파일의 이름입니다 (기기에서). |
bufferSize |
int: 원하는 버퍼 크기(바이트)(8MB가 적당함) |
flags |
int: startMethodTracing() 문서 참고, 기본 동작에는 0 사용 |
sendMPSE
public static void sendMPSE (ClientImpl client)
클라이언트에 MPSE (메서드 프로파일링 스트리밍 종료) 요청을 전송합니다.
| 매개변수 | |
|---|---|
client |
ClientImpl |
sendMPSS
public static void sendMPSS (ClientImpl client, int bufferSize, int flags)
클라이언트에 MPSS (메서드 프로파일링 스트리밍 시작) 요청을 전송합니다.
이 메서드의 인수는 결국 기기에서 android.os.Debug.startMethodTracing()에 전달됩니다.
| 매개변수 | |
|---|---|
client |
ClientImpl |
bufferSize |
int: 원하는 버퍼 크기(바이트)(8MB가 적당함) |
flags |
int: startMethodTracing() 문서 참고, 기본 동작에는 0 사용 |
sendSPSE
public static void sendSPSE (ClientImpl client)
클라이언트에 SPSE (샘플링 프로파일링 스트리밍 종료) 요청을 전송합니다.
| 매개변수 | |
|---|---|
client |
ClientImpl |
sendSPSS
public static void sendSPSS (ClientImpl client, int bufferSize, int samplingInterval, TimeUnit samplingIntervalTimeUnits)
클라이언트에 SPSS (샘플링 프로파일링 스트리밍 시작) 요청을 전송합니다.
| 매개변수 | |
|---|---|
client |
ClientImpl |
bufferSize |
int: 원하는 버퍼 크기(바이트)(8MB가 적당함) |
samplingInterval |
int: 샘플링 간격 |
samplingIntervalTimeUnits |
TimeUnit: 샘플링 간격의 단위 |