PerfettoTraceRecorder

public class PerfettoTraceRecorder
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.PerfettoTraceRecorder


คลาสยูทิลิตีสำหรับการบันทึกการติดตาม perfetto ใน ITestDevice

สรุป

เครื่องมือสร้างสาธารณะ

PerfettoTraceRecorder()

เมธอดสาธารณะ

void startTrace(ITestDevice device, String traceConfigFileName, extraConfigs)

เริ่มบันทึกการติดตาม perfetto ในอุปกรณ์

File stopTrace(ITestDevice device)

หยุดการบันทึกการติดตาม perfetto ในอุปกรณ์

เครื่องมือสร้างสาธารณะ

PerfettoTraceRecorder

public PerfettoTraceRecorder ()

เมธอดสาธารณะ

startTrace

public void startTrace (ITestDevice device, 
                String traceConfigFileName, 
                 extraConfigs)

เริ่มบันทึกการติดตาม perfetto ในอุปกรณ์ ต้องโทรหา stopTrace(com.android.tradefed.device.ITestDevice) หลังจากนั้นเพื่อหยุดการบันทึกการติดตาม

พารามิเตอร์
device ITestDevice: ITestDevice ที่จะบันทึกการติดตาม

traceConfigFileName String: ชื่อของไฟล์กำหนดค่าการติดตามในอาร์ติแฟกต์การทดสอบ หากเป็น Null ให้ใช้ การกำหนดค่าเริ่มต้นแทน

extraConfigs : แผนที่ของการกำหนดค่าเพิ่มเติมที่ต้องเพิ่มในไฟล์กำหนดค่าการติดตาม

stopTrace

public File stopTrace (ITestDevice device)

หยุดการบันทึกการติดตาม perfetto ในอุปกรณ์

ต้องเคยโทรหา ERROR(PerfettoTraceRecorder.startTrace(ITestDevice, Map)/com.android.tradefed.util.PerfettoTraceRecorder#startTrace(com.android.tradefed.device.ITestDevice,Map) PerfettoTraceRecorder.startTrace(ITestDevice, Map)) มาก่อน

พารามิเตอร์
device ITestDevice: อุปกรณ์ที่จะหยุดการบันทึก @Return Returns the perfetto trace file.

คิกรีเทิร์น
File