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 (Sampling Profiling Streaming End) ไปยังไคลเอ็นต์ |
static
void
|
sendSPSS(ClientImpl client, int bufferSize, int samplingInterval, TimeUnit samplingIntervalTimeUnits)
ส่งคำขอ SPSS (Sampling Profiling Streaming Start) ไปยังไคลเอ็นต์ |
ช่อง
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 MB เป็นขนาดที่ดี) |
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 MB เป็นขนาดที่ดี) |
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 (Sampling Profiling Streaming Start) ไปยังไคลเอ็นต์
| พารามิเตอร์ | |
|---|---|
client |
ClientImpl |
bufferSize |
int: คือขนาดบัฟเฟอร์ที่ต้องการเป็นไบต์ (8 MB เป็นขนาดที่ดี) |
samplingInterval |
int: ช่วงการสุ่มตัวอย่าง |
samplingIntervalTimeUnits |
TimeUnit: หน่วยสำหรับช่วงการสุ่มตัวอย่าง |