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 (بدء تحديد مواصفات الطريقة) إلى العميل. |
static
void
|
sendMPSE(ClientImpl client)
أرسِل طلب MPSE (نهاية بث بيانات ملف تعريف الطريقة) إلى العميل. |
static
void
|
sendMPSS(ClientImpl client, int bufferSize, int flags)
أرسِل طلب MPSS (بدء بث بيانات ملف تعريف الطريقة) إلى العميل. |
static
void
|
sendSPSE(ClientImpl client)
أرسِل طلب SPSE (Sampling Profiling Streaming End) إلى العميل. |
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 |
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 (بدء تحديد مواصفات الطريقة) إلى العميل.
سيتم في النهاية تمرير وسيطات هذه الطريقة إلى android.os.Debug.startMethodTracing() على الجهاز.
| المعلمات | |
|---|---|
client |
ClientImpl |
fileName |
String: هو اسم الملف الذي ستتم كتابة بيانات تحديد الأداء فيه (على الجهاز)؛ |
bufferSize |
int: هو حجم المخزن المؤقت المطلوب بالبايت (8 ميغابايت هو حجم مناسب) |
flags |
int: راجِع مستندات startMethodTracing()، واستخدِم 0 للسلوك التلقائي |
sendMPSE
public static void sendMPSE (ClientImpl client)
أرسِل طلب MPSE (نهاية بث بيانات ملف تعريف الطريقة) إلى العميل.
| المعلمات | |
|---|---|
client |
ClientImpl |
sendMPSS
public static void sendMPSS (ClientImpl client, int bufferSize, int flags)
أرسِل طلب MPSS (بدء بث بيانات ملف تعريف الطريقة) إلى العميل.
سيتم في النهاية تمرير وسيطات هذه الطريقة إلى android.os.Debug.startMethodTracing() على الجهاز.
| المعلمات | |
|---|---|
client |
ClientImpl |
bufferSize |
int: هو حجم المخزن المؤقت المطلوب بالبايت (8 ميغابايت هو حجم مناسب) |
flags |
int: راجِع مستندات startMethodTracing()، واستخدِم 0 للسلوك التلقائي |
sendSPSE
public static void sendSPSE (ClientImpl client)
أرسِل طلب SPSE (Sampling Profiling Streaming End) إلى العميل.
| المعلمات | |
|---|---|
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: وحدات الفاصل الزمني لأخذ العيّنات |