AtraceCollector

public class AtraceCollector
extends BaseDeviceMetricCollector

java.lang.Object
com.android.tradefed.device.metric.BaseDeviceMetricCollector
com.android.tradefed.device.metric.AtraceCollector


IMetricCollector ที่รัน atrace ระหว่างการทดสอบและรวบรวมผลลัพธ์และบันทึกลงในการเรียกใช้

สรุป

ผู้รับเหมาก่อสร้างสาธารณะ

AtraceCollector ()

วิธีการสาธารณะ

void onTestEnd ( DeviceMetricData testData, currentTestCaseMetrics, TestDescription test) onTestEnd ( DeviceMetricData testData, currentTestCaseMetrics, TestDescription test)

โทรกลับเมื่อกรณีการทดสอบสิ้นสุดลง

void onTestStart ( DeviceMetricData testData)

โทรกลับเมื่อกรณีทดสอบเริ่มต้นขึ้น

วิธีการที่ได้รับการป้องกัน

String fullLogPath ()
LogDataType getLogType ()
void startTracing ( ITestDevice device)
void stopTracing ( ITestDevice device)

ผู้รับเหมาก่อสร้างสาธารณะ

AtraceCollector

public AtraceCollector ()

วิธีการสาธารณะ

เมื่อทดสอบสิ้นสุด

public void onTestEnd (DeviceMetricData testData, 
                 currentTestCaseMetrics, 
                TestDescription test)

โทรกลับเมื่อกรณีการทดสอบสิ้นสุดลง นี่คงถึงเวลาทำความสะอาดแล้ว

พารามิเตอร์
testData DeviceMetricData : DeviceMetricData เก็บข้อมูลสำหรับกรณีทดสอบ จะเป็นออบเจ็กต์เดียวกันกับระหว่าง onTestStart(com.android.tradefed.device.metric.DeviceMetricData)

currentTestCaseMetrics : แผนที่ปัจจุบันของตัวชี้วัดที่ส่งผ่านไปยัง ERROR(/#testEnded(com.android.tradefed.result.TestDescription,Map))

test TestDescription : TestDescription ของกรณีทดสอบที่กำลังดำเนินการ

ขว้าง
DeviceNotAvailableException

บนTestStart

public void onTestStart (DeviceMetricData testData)

โทรกลับเมื่อกรณีทดสอบเริ่มต้นขึ้น

พารามิเตอร์
testData DeviceMetricData : DeviceMetricData เก็บข้อมูลสำหรับกรณีทดสอบ

ขว้าง
DeviceNotAvailableException

วิธีการที่ได้รับการป้องกัน

FullLogPath

protected String fullLogPath ()

การส่งคืน
String

getLogType

protected LogDataType getLogType ()

การส่งคืน
LogDataType

เริ่มต้นการติดตาม

protected void startTracing (ITestDevice device)

พารามิเตอร์
device ITestDevice

ขว้าง
DeviceNotAvailableException

หยุดการติดตาม

protected void stopTracing (ITestDevice device)

พารามิเตอร์
device ITestDevice

ขว้าง
DeviceNotAvailableException