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


Menangani pembaruan status heap.

Ringkasan

Kolom

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

Metode publik

void clientDisconnected(ClientImpl client)

Klien keluar.

void clientReady(ClientImpl client)

Klien sudah siap.

void handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)

Titik entri pengendali potongan.

static void register(MonitorThread mt)

Mendaftarkan paket yang diharapkan akan diterima dari klien.

static void sendMPRE(ClientImpl client)

Kirim permintaan MPRE (Method PRofiling End) ke klien.

static void sendMPRQ(ClientImpl client)

Kirim permintaan MPRQ (Method PRofiling Query) ke klien.

static void sendMPRS(ClientImpl client, String fileName, int bufferSize, int flags)

Kirim permintaan MPRS (Method PRofiling Start) ke klien.

static void sendMPSE(ClientImpl client)

Kirim permintaan MPSE (Method Profiling Streaming End) ke klien.

static void sendMPSS(ClientImpl client, int bufferSize, int flags)

Kirim permintaan MPSS (Method Profiling Streaming Start) ke klien.

static void sendSPSE(ClientImpl client)

Kirim permintaan SPSE (Sampling Profiling Streaming End) ke klien.

static void sendSPSS(ClientImpl client, int bufferSize, int samplingInterval, TimeUnit samplingIntervalTimeUnits)

Kirim permintaan SPSS (Sampling Profiling Streaming Start) ke klien.

Kolom

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

Metode publik

clientDisconnected

public void clientDisconnected (ClientImpl client)

Klien keluar.

Parameter
client ClientImpl

clientReady

public void clientReady (ClientImpl client)

Klien sudah siap.

Parameter
client ClientImpl

handleChunk

public void handleChunk (ClientImpl client, 
                int type, 
                ByteBuffer data, 
                boolean isReply, 
                int msgId)

Titik entri pengendali potongan.

Parameter
client ClientImpl

type int

data ByteBuffer

isReply boolean

msgId int

mendaftar

public static void register (MonitorThread mt)

Mendaftarkan paket yang diharapkan akan diterima dari klien.

Parameter
mt MonitorThread

sendMPRE

public static void sendMPRE (ClientImpl client)

Kirim permintaan MPRE (Method PRofiling End) ke klien.

Parameter
client ClientImpl

sendMPRQ

public static void sendMPRQ (ClientImpl client)

Kirim permintaan MPRQ (Method PRofiling Query) ke klien.

Parameter
client ClientImpl

sendMPRS

public static void sendMPRS (ClientImpl client, 
                String fileName, 
                int bufferSize, 
                int flags)

Kirim permintaan MPRS (Method PRofiling Start) ke klien.

Argumen untuk metode ini pada akhirnya akan diteruskan ke android.os.Debug.startMethodTracing() di perangkat.

Parameter
client ClientImpl

fileName String: adalah nama file tempat data pembuatan profil akan ditulis (di perangkat);

bufferSize int: adalah ukuran buffer yang diinginkan dalam byte (8 MB sudah cukup)

flags int: lihat dokumen startMethodTracing(); gunakan 0 untuk perilaku default

sendMPSE

public static void sendMPSE (ClientImpl client)

Kirim permintaan MPSE (Method Profiling Streaming End) ke klien.

Parameter
client ClientImpl

sendMPSS

public static void sendMPSS (ClientImpl client, 
                int bufferSize, 
                int flags)

Kirim permintaan MPSS (Method Profiling Streaming Start) ke klien.

Argumen untuk metode ini pada akhirnya akan diteruskan ke android.os.Debug.startMethodTracing() di perangkat.

Parameter
client ClientImpl

bufferSize int: adalah ukuran buffer yang diinginkan dalam byte (8 MB sudah cukup)

flags int: lihat dokumen startMethodTracing(); gunakan 0 untuk perilaku default

sendSPSE

public static void sendSPSE (ClientImpl client)

Kirim permintaan SPSE (Sampling Profiling Streaming End) ke klien.

Parameter
client ClientImpl

sendSPSS

public static void sendSPSS (ClientImpl client, 
                int bufferSize, 
                int samplingInterval, 
                TimeUnit samplingIntervalTimeUnits)

Kirim permintaan SPSS (Sampling Profiling Streaming Start) ke klien.

Parameter
client ClientImpl

bufferSize int: adalah ukuran buffer yang diinginkan dalam byte (8 MB sudah cukup)

samplingInterval int: interval pengambilan sampel

samplingIntervalTimeUnits TimeUnit: unit untuk interval pengambilan sampel