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 | ||
Yığın durumu güncellemelerini işleme
Özet
Sabitler | |
|---|---|
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
|
Fields'ın oynadığı filmler | |
|---|---|
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
|
Herkese açık yöntemler | |
|---|---|
void
|
clientDisconnected(ClientImpl client)
İstemci uzaklaştı. |
void
|
clientReady(ClientImpl client)
İstemci hazır. |
void
|
handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
Parça işleyici giriş noktası. |
static
void
|
register(MonitorThread mt)
İstemciden almayı beklediğimiz paketler için kaydolun. |
static
void
|
sendHPDS(ClientImpl client)
Müşteriye bir HPDS isteği gönderir. |
static
void
|
sendHPDU(ClientImpl client, String fileName)
İstemciye bir HPDU isteği gönderir. |
static
void
|
sendHPGC(ClientImpl client)
İstemciye bir HPGC isteği gönderir. |
static
void
|
sendHPIF(ClientImpl client, int when)
Müşteriye bir HPIF (HeaP InFo) isteği gönderin. |
static
void
|
sendHPSG(ClientImpl client, int when, int what)
İstemciye bir HPSG (HeaP SeGment) isteği gönderir. |
static
void
|
sendREAE(ClientImpl client, boolean enable)
İstemciye REAE (REcent Allocation Enable) isteği gönderir. |
static
void
|
sendREAL(ClientImpl client)
İstemciye REAL (REcent ALlocation) isteği gönderir. |
static
void
|
sendREAQ(ClientImpl client)
İstemciye REAQ (REcent Allocation Query) isteği gönderir. |
Sabitler
HPIF_WHEN_EVERY_GC
public static final int HPIF_WHEN_EVERY_GC
Sabit Değer: 3 (0x00000003)
HPIF_WHEN_NEVER
public static final int HPIF_WHEN_NEVER
Sabit Değer: 0 (0x00000000)
HPIF_WHEN_NEXT_GC
public static final int HPIF_WHEN_NEXT_GC
Sabit Değer: 2 (0x00000002)
HPIF_WHEN_NOW
public static final int HPIF_WHEN_NOW
Sabit Değer: 1 (0x00000001)
WHAT_MERGE
public static final int WHAT_MERGE
Sabit Değer: 0 (0x00000000)
WHAT_OBJ
public static final int WHAT_OBJ
Sabit Değer: 1 (0x00000001)
WHEN_DISABLE
public static final int WHEN_DISABLE
Sabit Değer: 0 (0x00000000)
WHEN_GC
public static final int WHEN_GC
Sabit Değer: 1 (0x00000001)
Fields'ın oynadığı filmler
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
Herkese açık yöntemler
clientDisconnected
public void clientDisconnected (ClientImpl client)
İstemci uzaklaştı.
| Parametreler | |
|---|---|
client |
ClientImpl |
clientReady
public void clientReady (ClientImpl client)
İstemci hazır.
| Parametreler | |
|---|---|
client |
ClientImpl |
handleChunk
public void handleChunk (ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
Parça işleyici giriş noktası.
| Parametreler | |
|---|---|
client |
ClientImpl |
type |
int |
data |
ByteBuffer |
isReply |
boolean |
msgId |
int |
kayıt
public static void register (MonitorThread mt)
İstemciden almayı beklediğimiz paketler için kaydolun.
| Parametreler | |
|---|---|
mt |
MonitorThread |
sendHPDS
public static void sendHPDS (ClientImpl client)
Müşteriye bir HPDS isteği gönderir.
Heap dökümü tamamlandığında HPDS yanıtı alırız. Başarısızlık durumunda genel bir hata yanıtı alırız.
Bu yöntem, HPDU'ya kıyasla cihaz için daha maliyetlidir. Bunun nedeni, tüm yığın dökümünün geçici bir dosyaya aktarılmak yerine RAM'de tutulmasıdır. Diğer yandan, /sdcard konumuna yazma izni gerekmez.
| Parametreler | |
|---|---|
client |
ClientImpl |
sendHPDU
public static void sendHPDU (ClientImpl client, String fileName)
İstemciye bir HPDU isteği gönderir.
Heap dökümü tamamlandığında HPDU yanıtı alırız. Başarısızlık durumunda genel bir hata yanıtı alırız.
| Parametreler | |
|---|---|
client |
ClientImpl |
fileName |
String: Çıkış dosyasının adı (cihazda) |
sendHPGC
public static void sendHPGC (ClientImpl client)
İstemciye bir HPGC isteği gönderir.
| Parametreler | |
|---|---|
client |
ClientImpl |
sendHPIF
public static void sendHPIF (ClientImpl client, int when)
İstemciye bir HPIF (HeaP InFo) isteği gönderin.
| Parametreler | |
|---|---|
client |
ClientImpl |
when |
int |
sendHPSG
public static void sendHPSG (ClientImpl client, int when, int what)
İstemciye bir HPSG (HeaP SeGment) isteği gönderir.
| Parametreler | |
|---|---|
client |
ClientImpl |
when |
int |
what |
int |
sendREAE
public static void sendREAE (ClientImpl client, boolean enable)
İstemciye REAE (REcent Allocation Enable) isteği gönderir.
| Parametreler | |
|---|---|
client |
ClientImpl |
enable |
boolean |
sendREAL
public static void sendREAL (ClientImpl client)
İstemciye REAL (REcent ALlocation) isteği gönderir.
| Parametreler | |
|---|---|
client |
ClientImpl |
sendREAQ
public static void sendREAQ (ClientImpl client)
İstemciye REAQ (REcent Allocation Query) isteği gönderir.
| Parametreler | |
|---|---|
client |
ClientImpl |