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)
Chunk handler entry point. |
static
void
|
register(MonitorThread mt)
註冊預期從用戶端取得的封包。 |
static
void
|
sendMPRE(ClientImpl client)
將 MPRE (方法剖析結束) 要求傳送至用戶端。 |
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
公用方法
handleChunk
public void handleChunk (ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
區塊處理常式進入點。
| 參數 | |
|---|---|
client |
ClientImpl |
type |
int |
data |
ByteBuffer |
isReply |
boolean |
msgId |
int |
sendMPRE
public static void sendMPRE (ClientImpl client)
向用戶端傳送 MPRE (方法剖析結束) 要求。
| 參數 | |
|---|---|
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:以位元組為單位的所需緩衝區大小 (8 MB 即可) |
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:以位元組為單位的所需緩衝區大小 (8 MB 即可) |
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:以位元組為單位的所需緩衝區大小 (8 MB 即可) |
samplingInterval |
int:取樣間隔 |
samplingIntervalTimeUnits |
TimeUnit:取樣間隔的單位 |