HandleHeap

public final class HandleHeap
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.HandleHeap


ヒープ ステータスの更新を処理します。

概要

定数

int HPIF_WHEN_EVERY_GC

int HPIF_WHEN_NEVER

int HPIF_WHEN_NEXT_GC

int HPIF_WHEN_NOW

int WHAT_MERGE

int WHAT_OBJ

int WHEN_DISABLE

int WHEN_GC

フィールド

public static final int CHUNK_HPDS

public static final int CHUNK_HPDU

public static final int CHUNK_HPEN

public static final int CHUNK_HPGC

public static final int CHUNK_HPIF

public static final int CHUNK_HPSG

public static final int CHUNK_HPST

public static final int CHUNK_REAE

public static final int CHUNK_REAL

public static final int CHUNK_REAQ

パブリック メソッド

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 sendHPDS(ClientImpl client)

クライアントに HPDS リクエストを送信します。

static void sendHPDU(ClientImpl client, String fileName)

クライアントに HPDU リクエストを送信します。

static void sendHPGC(ClientImpl client)

クライアントに HPGC リクエストを送信します。

static void sendHPIF(ClientImpl client, int when)

クライアントに HPIF(HeaP InFo)リクエストを送信します。

static void sendHPSG(ClientImpl client, int when, int what)

クライアントに HPSG(HeaP SeGment)リクエストを送信します。

static void sendREAE(ClientImpl client, boolean enable)

クライアントに REAE(REcent Allocation Enable)リクエストを送信します。

static void sendREAL(ClientImpl client)

クライアントに REAL(REcent ALlocation)リクエストを送信します。

static void sendREAQ(ClientImpl client)

クライアントに REAQ(REcent Allocation Query)リクエストを送信します。

定数

HPIF_WHEN_EVERY_GC

public static final int HPIF_WHEN_EVERY_GC

定数値: 3 (0x00000003)

HPIF_WHEN_NEVER

public static final int HPIF_WHEN_NEVER

定数値: 0 (0x00000000)

HPIF_WHEN_NEXT_GC

public static final int HPIF_WHEN_NEXT_GC

定数値: 2 (0x00000002)

HPIF_WHEN_NOW

public static final int HPIF_WHEN_NOW

定数値: 1 (0x00000001)

WHAT_MERGE

public static final int WHAT_MERGE

定数値: 0 (0x00000000)

WHAT_OBJ

public static final int WHAT_OBJ

定数値: 1 (0x00000001)

WHEN_DISABLE

public static final int WHEN_DISABLE

定数値: 0 (0x00000000)

WHEN_GC

public static final int WHEN_GC

定数値: 1 (0x00000001)

フィールド

CHUNK_HPDS

public static final int CHUNK_HPDS

CHUNK_HPDU

public static final int CHUNK_HPDU

CHUNK_HPEN

public static final int CHUNK_HPEN

CHUNK_HPGC

public static final int CHUNK_HPGC

CHUNK_HPIF

public static final int CHUNK_HPIF

CHUNK_HPSG

public static final int CHUNK_HPSG

CHUNK_HPST

public static final int CHUNK_HPST

CHUNK_REAE

public static final int CHUNK_REAE

CHUNK_REAL

public static final int CHUNK_REAL

CHUNK_REAQ

public static final int CHUNK_REAQ

パブリック メソッド

clientDisconnected

public void clientDisconnected (ClientImpl client)

クライアントが離れた。

パラメータ
client ClientImpl

clientReady

public void clientReady (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

sendHPDS

public static void sendHPDS (ClientImpl client)

クライアントに HPDS リクエストを送信します。

ヒープダンプが完了すると、HPDS レスポンスが返されます。失敗すると、一般的な失敗レスポンスが返されます。

HPDU よりもデバイスの費用が高くなります。これは、ヒープダンプ全体が一時ファイルにスプールされるのではなく、RAM に保持されるためです。一方、/sdcard への書き込み権限は必要ありません。

パラメータ
client ClientImpl

sendHPDU

public static void sendHPDU (ClientImpl client, 
                String fileName)

クライアントに HPDU リクエストを送信します。

ヒープダンプが完了すると、HPDU レスポンスが返されます。失敗すると、一般的な失敗レスポンスが返されます。

パラメータ
client ClientImpl

fileName String: 出力ファイルの名前(デバイス上)

sendHPGC

public static void sendHPGC (ClientImpl client)

クライアントに HPGC リクエストを送信します。

パラメータ
client ClientImpl

sendHPIF

public static void sendHPIF (ClientImpl client, 
                int when)

クライアントに HPIF(HeaP InFo)リクエストを送信します。

パラメータ
client ClientImpl

when int

sendHPSG

public static void sendHPSG (ClientImpl client, 
                int when, 
                int what)

クライアントに HPSG(HeaP SeGment)リクエストを送信します。

パラメータ
client ClientImpl

when int

what int

sendREAE

public static void sendREAE (ClientImpl client, 
                boolean enable)

クライアントに REAE(REcent Allocation Enable)リクエストを送信します。

パラメータ
client ClientImpl

enable boolean

sendREAL

public static void sendREAL (ClientImpl client)

クライアントに REAL(REcent ALlocation)リクエストを送信します。

パラメータ
client ClientImpl

sendREAQ

public static void sendREAQ (ClientImpl client)

クライアントに REAQ(REcent Allocation Query)リクエストを送信します。

パラメータ
client ClientImpl