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(メソッド プロファイリング終了)リクエストをクライアントに送信します。 |
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(メソッド プロファイリング ストリーミング終了)リクエストをクライアントに送信します。 |
static
void
|
sendMPSS(ClientImpl client, int bufferSize, int flags)
クライアントに MPSS(Method Profiling Streaming Start)リクエストを送信します。 |
static
void
|
sendSPSE(ClientImpl client)
SPSE(サンプリング プロファイリング ストリーミング終了)リクエストをクライアントに送信します。 |
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
パブリック メソッド
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(メソッド プロファイリング終了)リクエストをクライアントに送信します。
| パラメータ | |
|---|---|
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 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(Method Profiling Streaming Start)リクエストを送信します。
このメソッドの引数は、最終的にデバイスの android.os.Debug.startMethodTracing() に渡されます。
| パラメータ | |
|---|---|
client |
ClientImpl |
bufferSize |
int: 目的のバッファサイズ(バイト単位)(8 MB が適切) |
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 MB が適切) |
samplingInterval |
int: サンプリング間隔 |
samplingIntervalTimeUnits |
TimeUnit: サンプリング間隔の単位 |