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


Heap-Status-Updates verarbeiten.

Zusammenfassung

Felder

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

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

Senden Sie eine MPRE-Anfrage (Method PRofiling End) an den Client.

static void sendMPRQ(ClientImpl client)

Senden Sie eine MPRQ-Anfrage (Method PRofiling Query) an den Client.

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

Senden Sie eine MPRS-Anfrage (Method PRofiling Start) an den Client.

static void sendMPSE(ClientImpl client)

Senden Sie eine MPSE-Anfrage (Method Profiling Streaming End) an den Client.

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

Senden Sie eine MPSS-Anfrage (Method Profiling Streaming Start) an den Client.

static void sendSPSE(ClientImpl client)

Senden Sie eine SPSE-Anfrage (Sampling Profiling Streaming End) an den Client.

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

Senden Sie eine SPSS-Anfrage (Sampling Profiling Streaming Start) an den Client.

Felder

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

Ö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

sendMPRE

public static void sendMPRE (ClientImpl client)

Senden Sie eine MPRE-Anfrage (Method PRofiling End) an den Client.

Parameter
client ClientImpl

sendMPRQ

public static void sendMPRQ (ClientImpl client)

Senden Sie eine MPRQ-Anfrage (Method PRofiling Query) an den Client.

Parameter
client ClientImpl

sendMPRS

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

Senden Sie eine MPRS-Anfrage (Method PRofiling Start) an den Client.

Die Argumente für diese Methode werden schließlich an android.os.Debug.startMethodTracing() auf dem Gerät übergeben.

Parameter
client ClientImpl

fileName String: der Name der Datei, in die Profiling-Daten auf dem Gerät geschrieben werden.

bufferSize int: die gewünschte Puffergröße in Byte (8 MB sind ein guter Wert)

flags int: Weitere Informationen finden Sie in der Dokumentation zu startMethodTracing(). Verwenden Sie 0 für das Standardverhalten.

sendMPSE

public static void sendMPSE (ClientImpl client)

Senden Sie eine MPSE-Anfrage (Method Profiling Streaming End) an den Client.

Parameter
client ClientImpl

sendMPSS

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

Senden Sie eine MPSS-Anfrage (Method Profiling Streaming Start) an den Client.

Die Argumente für diese Methode werden schließlich an android.os.Debug.startMethodTracing() auf dem Gerät übergeben.

Parameter
client ClientImpl

bufferSize int: die gewünschte Puffergröße in Byte (8 MB ist ein guter Wert)

flags int: Weitere Informationen finden Sie in der Dokumentation zu startMethodTracing(). Verwenden Sie 0 für das Standardverhalten.

sendSPSE

public static void sendSPSE (ClientImpl client)

Senden Sie eine SPSE-Anfrage (Sampling Profiling Streaming End) an den Client.

Parameter
client ClientImpl

sendSPSS

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

Senden Sie eine SPSS-Anfrage (Sampling Profiling Streaming Start) an den Client.

Parameter
client ClientImpl

bufferSize int: die gewünschte Puffergröße in Byte (8 MB ist ein guter Wert)

samplingInterval int: Sampling-Intervall

samplingIntervalTimeUnits TimeUnit: Einheiten für das Stichprobenintervall