AtraceCollector
public class AtraceCollector
extends BaseDeviceMetricCollector
java.lang.객체 | ||
↳ | com.android.tradefed.device.metric.BaseDeviceMetricCollector | |
↳ | com.android.tradefed.device.metric.AtraceCollector |
테스트 중에 atrace를 실행하고 결과를 수집하고 호출에 기록하는 IMetricCollector
입니다.
요약
공개 생성자 | |
---|---|
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 ()
공개 방법
onTestEnd
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 |
onTestStart
public void onTestStart (DeviceMetricData testData)
테스트 케이스가 시작될 때 콜백합니다.
매개변수 | |
---|---|
testData | DeviceMetricData : 테스트 사례에 대한 데이터를 보유하는 DeviceMetricData . |
던지기 | |
---|---|
DeviceNotAvailableException |
보호된 메서드
fullLogPath
protected String fullLogPath ()
보고 | |
---|---|
String |
시작추적
protected void startTracing (ITestDevice device)
매개변수 | |
---|---|
device | ITestDevice |
던지기 | |
---|---|
DeviceNotAvailableException |
stopTracing
protected void stopTracing (ITestDevice device)
매개변수 | |
---|---|
device | ITestDevice |
던지기 | |
---|---|
DeviceNotAvailableException |