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, Map<String, MetricMeasurement.Metric> currentTestCaseMetrics, TestDescription test)

การเรียกกลับเมื่อเคสทดสอบสิ้นสุด

void onTestStart(DeviceMetricData testData)

การเรียกกลับเมื่อเคสทดสอบเริ่มต้น

เมธอดที่ได้รับการปกป้อง

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

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

AtraceCollector

public AtraceCollector ()

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

onTestEnd

public void onTestEnd (DeviceMetricData testData, 
                Map<String, MetricMeasurement.Metric> currentTestCaseMetrics, 
                TestDescription test)

การเรียกกลับเมื่อเคสทดสอบสิ้นสุด ซึ่งควรเป็นเวลาสำหรับการล้างข้อมูล

พารามิเตอร์
testData DeviceMetricData: DeviceMetricData ที่เก็บข้อมูลสำหรับเคสทดสอบ จะเป็นออบเจ็กต์เดียวกับที่ใช้ระหว่าง onTestStart(DeviceMetricData)

currentTestCaseMetrics Map: แผนที่เมตริกปัจจุบันที่ส่งไปยัง testEnded(TestDescription,Map)

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

ส่ง
DeviceNotAvailableException

onTestStart

public void onTestStart (DeviceMetricData testData)

การเรียกกลับเมื่อเคสทดสอบเริ่มต้น

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

ส่ง
DeviceNotAvailableException

เมธอดที่ได้รับการปกป้อง

fullLogPath

protected String fullLogPath ()

การคืนสินค้า
String

getLogType

protected LogDataType getLogType ()

การคืนสินค้า
LogDataType

startTracing

protected void startTracing (ITestDevice device)

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

ส่ง
DeviceNotAvailableException

stopTracing

protected void stopTracing (ITestDevice device)

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

ส่ง
DeviceNotAvailableException