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


Gérer les mises à jour de l'état du tas.

Résumé

Champs

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

Méthodes publiques

void clientDisconnected(ClientImpl client)

Le client est parti.

void clientReady(ClientImpl client)

Le client est prêt.

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

Point d'entrée du gestionnaire de blocs.

static void register(MonitorThread mt)

Enregistrez les paquets que vous prévoyez de recevoir du client.

static void sendMPRE(ClientImpl client)

Envoyez une requête MPRE (Method PRofiling End) au client.

static void sendMPRQ(ClientImpl client)

Envoyez une requête MPRQ (Method PRofiling Query) au client.

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

Envoyez une requête MPRS (Method PRofiling Start) au client.

static void sendMPSE(ClientImpl client)

Envoyez une requête MPSE (Method Profiling Streaming End) au client.

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

Envoyez une requête MPSS (Method Profiling Streaming Start) au client.

static void sendSPSE(ClientImpl client)

Envoyez une requête SPSE (Sampling Profiling Streaming End) au client.

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

Envoyez une requête SPSS (Sampling Profiling Streaming Start) au client.

Champs

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

Méthodes publiques

clientDisconnected

public void clientDisconnected (ClientImpl client)

Le client est parti.

Paramètres
client ClientImpl

clientReady

public void clientReady (ClientImpl client)

Le client est prêt.

Paramètres
client ClientImpl

handleChunk

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

Point d'entrée du gestionnaire de blocs.

Paramètres
client ClientImpl

type int

data ByteBuffer

isReply boolean

msgId int

s'inscrire

public static void register (MonitorThread mt)

Enregistrez les paquets que vous prévoyez de recevoir du client.

Paramètres
mt MonitorThread

sendMPRE

public static void sendMPRE (ClientImpl client)

Envoyez une requête MPRE (Method PRofiling End) au client.

Paramètres
client ClientImpl

sendMPRQ

public static void sendMPRQ (ClientImpl client)

Envoyez une requête MPRQ (Method PRofiling Query) au client.

Paramètres
client ClientImpl

sendMPRS

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

Envoyez une requête MPRS (Method PRofiling Start) au client.

Les arguments de cette méthode seront finalement transmis à android.os.Debug.startMethodTracing() sur l'appareil.

Paramètres
client ClientImpl

fileName String : nom du fichier dans lequel les données de profilage seront écrites (sur l'appareil).

bufferSize int : taille de mémoire tampon souhaitée en octets (8 Mo est une bonne valeur)

flags int : consultez la documentation de startMethodTracing(). Utilisez 0 pour le comportement par défaut.

sendMPSE

public static void sendMPSE (ClientImpl client)

Envoyez une requête MPSE (Method Profiling Streaming End) au client.

Paramètres
client ClientImpl

sendMPSS

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

Envoyez une requête MPSS (Method Profiling Streaming Start) au client.

Les arguments de cette méthode seront finalement transmis à android.os.Debug.startMethodTracing() sur l'appareil.

Paramètres
client ClientImpl

bufferSize int : taille de mémoire tampon souhaitée en octets (8 Mo est une bonne valeur)

flags int : consultez la documentation de startMethodTracing(). Utilisez 0 pour le comportement par défaut.

sendSPSE

public static void sendSPSE (ClientImpl client)

Envoyez une requête SPSE (Sampling Profiling Streaming End) au client.

Paramètres
client ClientImpl

sendSPSS

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

Envoyez une requête SPSS (Sampling Profiling Streaming Start) au client.

Paramètres
client ClientImpl

bufferSize int : taille de mémoire tampon souhaitée en octets (8 Mo est une bonne valeur)

samplingInterval int : intervalle d'échantillonnage

samplingIntervalTimeUnits TimeUnit : unités pour l'intervalle d'échantillonnage