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 | ||
यह कुकी, हीप के स्टेटस अपडेट को मैनेज करती है.
खास जानकारी
फ़ील्ड्स की फ़िल्में | |
|---|---|
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
|
सार्वजनिक तरीके | |
|---|---|
void
|
clientDisconnected(ClientImpl client)
क्लाइंट चला गया. |
void
|
clientReady(ClientImpl client)
क्लाइंट तैयार है. |
void
|
handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
यह चंक हैंडलर का एंट्री पॉइंट है. |
static
void
|
register(MonitorThread mt)
क्लाइंट से मिलने वाले पैकेट के लिए रजिस्टर करें. |
static
void
|
sendMPRE(ClientImpl client)
क्लाइंट को MPRE (Method PRofiling End) अनुरोध भेजें. |
static
void
|
sendMPRQ(ClientImpl client)
क्लाइंट को MPRQ (मेथड प्रोफ़ाइलिंग क्वेरी) अनुरोध भेजें. |
static
void
|
sendMPRS(ClientImpl client, String fileName, int bufferSize, int flags)
क्लाइंट को MPRS (Method PRofiling Start) अनुरोध भेजें. |
static
void
|
sendMPSE(ClientImpl client)
क्लाइंट को MPSE (Method Profiling Streaming End) अनुरोध भेजें. |
static
void
|
sendMPSS(ClientImpl client, int bufferSize, int flags)
क्लाइंट को MPSS (Method Profiling Streaming Start) अनुरोध भेजें. |
static
void
|
sendSPSE(ClientImpl client)
क्लाइंट को SPSE (सैंपलिंग प्रोफ़ाइलिंग स्ट्रीमिंग एंड) अनुरोध भेजें. |
static
void
|
sendSPSS(ClientImpl client, int bufferSize, int samplingInterval, TimeUnit samplingIntervalTimeUnits)
क्लाइंट को SPSS (सैंपलिंग, प्रोफ़ाइलिंग, स्ट्रीमिंग शुरू करें) अनुरोध भेजें. |
फ़ील्ड्स की फ़िल्में
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
सार्वजनिक तरीके
clientDisconnected
public void clientDisconnected (ClientImpl client)
क्लाइंट चला गया.
| पैरामीटर | |
|---|---|
client |
ClientImpl |
clientReady
public void clientReady (ClientImpl client)
क्लाइंट तैयार है.
| पैरामीटर | |
|---|---|
client |
ClientImpl |
handleChunk
public void handleChunk (ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
यह चंक हैंडलर का एंट्री पॉइंट है.
| पैरामीटर | |
|---|---|
client |
ClientImpl |
type |
int |
data |
ByteBuffer |
isReply |
boolean |
msgId |
int |
रजिस्टर करें
public static void register (MonitorThread mt)
क्लाइंट से मिलने वाले पैकेट के लिए रजिस्टर करें.
| पैरामीटर | |
|---|---|
mt |
MonitorThread |
sendMPRE
public static void sendMPRE (ClientImpl client)
क्लाइंट को MPRE (Method PRofiling End) अनुरोध भेजें.
| पैरामीटर | |
|---|---|
client |
ClientImpl |
sendMPRQ
public static void sendMPRQ (ClientImpl client)
क्लाइंट को MPRQ (मेथड प्रोफ़ाइलिंग क्वेरी) अनुरोध भेजें.
| पैरामीटर | |
|---|---|
client |
ClientImpl |
sendMPRS
public static void sendMPRS (ClientImpl client, String fileName, int bufferSize, int flags)
क्लाइंट को MPRS (Method PRofiling Start) अनुरोध भेजें.
इस तरीके के आर्ग्युमेंट, डिवाइस पर android.os.Debug.startMethodTracing() को पास किए जाएंगे.
| पैरामीटर | |
|---|---|
client |
ClientImpl |
fileName |
String: उस फ़ाइल का नाम है जिसमें प्रोफ़ाइलिंग डेटा लिखा जाएगा (डिवाइस पर); |
bufferSize |
int: यह बाइट में बफ़र का साइज़ है (8 एमबी सही है) |
flags |
int: startMethodTracing() के दस्तावेज़ देखें; डिफ़ॉल्ट व्यवहार के लिए 0 का इस्तेमाल करें |
sendMPSE
public static void sendMPSE (ClientImpl client)
क्लाइंट को MPSE (Method Profiling Streaming End) अनुरोध भेजें.
| पैरामीटर | |
|---|---|
client |
ClientImpl |
sendMPSS
public static void sendMPSS (ClientImpl client, int bufferSize, int flags)
क्लाइंट को MPSS (Method Profiling Streaming Start) अनुरोध भेजें.
इस तरीके के आर्ग्युमेंट, डिवाइस पर android.os.Debug.startMethodTracing() को पास किए जाएंगे.
| पैरामीटर | |
|---|---|
client |
ClientImpl |
bufferSize |
int: यह बाइट में बफ़र का साइज़ है (8 एमबी सही है) |
flags |
int: startMethodTracing() के दस्तावेज़ देखें; डिफ़ॉल्ट व्यवहार के लिए 0 का इस्तेमाल करें |
sendSPSE
public static void sendSPSE (ClientImpl client)
क्लाइंट को SPSE (सैंपलिंग प्रोफ़ाइलिंग स्ट्रीमिंग एंड) अनुरोध भेजें.
| पैरामीटर | |
|---|---|
client |
ClientImpl |
sendSPSS
public static void sendSPSS (ClientImpl client, int bufferSize, int samplingInterval, TimeUnit samplingIntervalTimeUnits)
क्लाइंट को SPSS (सैंपलिंग, प्रोफ़ाइलिंग, स्ट्रीमिंग शुरू करें) अनुरोध भेजें.
| पैरामीटर | |
|---|---|
client |
ClientImpl |
bufferSize |
int: यह बाइट में बफ़र का साइज़ है (8 एमबी सही है) |
samplingInterval |
int: सैंपलिंग इंटरवल |
samplingIntervalTimeUnits |
TimeUnit: सैंपलिंग इंटरवल के लिए इकाइयां |