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 | ||
Heap-Status-Updates verarbeiten.
Zusammenfassung
Konstanten | |
|---|---|
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
|
Felder | |
|---|---|
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
|
Öffentliche Methoden | |
|---|---|
void
|
clientDisconnected(ClientImpl client)
Der Kunde ist nicht mehr da. |
void
|
clientReady(ClientImpl client)
Der Client ist bereit. |
void
|
handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
Einstiegspunkt für die Chunk-Verarbeitung. |
static
void
|
register(MonitorThread mt)
Registrieren Sie sich für die Pakete, die wir vom Client erwarten. |
static
void
|
sendHPDS(ClientImpl client)
Sendet eine HPDS-Anfrage an den Client. |
static
void
|
sendHPDU(ClientImpl client, String fileName)
Sendet eine HPDU-Anfrage an den Client. |
static
void
|
sendHPGC(ClientImpl client)
Sendet eine HPGC-Anfrage an den Client. |
static
void
|
sendHPIF(ClientImpl client, int when)
Senden Sie eine HPIF-Anfrage (HeaP InFo) an den Client. |
static
void
|
sendHPSG(ClientImpl client, int when, int what)
Sendet eine HPSG-Anfrage (HeaP SeGment) an den Client. |
static
void
|
sendREAE(ClientImpl client, boolean enable)
Sendet eine REAE-Anfrage (REcent Allocation Enable) an den Client. |
static
void
|
sendREAL(ClientImpl client)
Sendet eine REAL-Anfrage (REcent ALlocation) an den Client. |
static
void
|
sendREAQ(ClientImpl client)
Sendet eine REAQ-Anfrage (REcent Allocation Query) an den Client. |
Konstanten
HPIF_WHEN_EVERY_GC
public static final int HPIF_WHEN_EVERY_GC
Konstanter Wert: 3 (0x00000003)
HPIF_WHEN_NEVER
public static final int HPIF_WHEN_NEVER
Konstanter Wert: 0 (0x00000000)
HPIF_WHEN_NEXT_GC
public static final int HPIF_WHEN_NEXT_GC
Konstanter Wert: 2 (0x00000002)
HPIF_WHEN_NOW
public static final int HPIF_WHEN_NOW
Konstanter Wert: 1 (0x00000001)
WHAT_MERGE
public static final int WHAT_MERGE
Konstanter Wert: 0 (0x00000000)
WHAT_OBJ
public static final int WHAT_OBJ
Konstanter Wert: 1 (0x00000001)
WHEN_DISABLE
public static final int WHEN_DISABLE
Konstanter Wert: 0 (0x00000000)
WHEN_GC
public static final int WHEN_GC
Konstanter Wert: 1 (0x00000001)
Felder
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
Öffentliche Methoden
clientDisconnected
public void clientDisconnected (ClientImpl client)
Der Kunde ist nicht mehr da.
| Parameter | |
|---|---|
client |
ClientImpl |
clientReady
public void clientReady (ClientImpl client)
Der Client ist bereit.
| Parameter | |
|---|---|
client |
ClientImpl |
handleChunk
public void handleChunk (ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
Einstiegspunkt für die Chunk-Verarbeitung.
| Parameter | |
|---|---|
client |
ClientImpl |
type |
int |
data |
ByteBuffer |
isReply |
boolean |
msgId |
int |
registrieren
public static void register (MonitorThread mt)
Registrieren Sie sich für die Pakete, die wir vom Client erwarten.
| Parameter | |
|---|---|
mt |
MonitorThread |
sendHPDS
public static void sendHPDS (ClientImpl client)
Sendet eine HPDS-Anfrage an den Client.
Wir erhalten eine HPDS-Antwort, wenn der Heap-Dump abgeschlossen ist. Bei einem Fehler erhalten wir eine allgemeine Fehlermeldung.
Das ist für das Gerät teurer als HPDU, da der gesamte Heap-Dump im RAM gespeichert wird, anstatt in eine temporäre Datei ausgelagert zu werden. Die Berechtigung zum Schreiben in /sdcard ist hingegen nicht erforderlich.
| Parameter | |
|---|---|
client |
ClientImpl |
sendHPDU
public static void sendHPDU (ClientImpl client, String fileName)
Sendet eine HPDU-Anfrage an den Client.
Wir erhalten eine HPDU-Antwort, wenn der Heap-Dump abgeschlossen ist. Bei einem Fehler erhalten wir eine allgemeine Fehlermeldung.
| Parameter | |
|---|---|
client |
ClientImpl |
fileName |
String: Name der Ausgabedatei (auf dem Gerät) |
sendHPGC
public static void sendHPGC (ClientImpl client)
Sendet eine HPGC-Anfrage an den Client.
| Parameter | |
|---|---|
client |
ClientImpl |
sendHPIF
public static void sendHPIF (ClientImpl client, int when)
Senden Sie eine HPIF-Anfrage (HeaP InFo) an den Client.
| Parameter | |
|---|---|
client |
ClientImpl |
when |
int |
sendHPSG
public static void sendHPSG (ClientImpl client, int when, int what)
Sendet eine HPSG-Anfrage (HeaP SeGment) an den Client.
| Parameter | |
|---|---|
client |
ClientImpl |
when |
int |
what |
int |
sendREAE
public static void sendREAE (ClientImpl client, boolean enable)
Sendet eine REAE-Anfrage (REcent Allocation Enable) an den Client.
| Parameter | |
|---|---|
client |
ClientImpl |
enable |
boolean |
sendREAL
public static void sendREAL (ClientImpl client)
Sendet eine REAL-Anfrage (REcent ALlocation) an den Client.
| Parameter | |
|---|---|
client |
ClientImpl |
sendREAQ
public static void sendREAQ (ClientImpl client)
Sendet eine REAQ-Anfrage (REcent Allocation Query) an den Client.
| Parameter | |
|---|---|
client |
ClientImpl |