AtraceCollector
public class AtraceCollector
extends BaseDeviceMetricCollector
java.lang.Object | ||
↳ | 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 |
보호된 방법
전체로그경로
protected String fullLogPath ()
보고 | |
---|---|
String |
시작추적
protected void startTracing (ITestDevice device)
매개변수 | |
---|---|
device | ITestDevice |
던지기 | |
---|---|
DeviceNotAvailableException |
추적 중지
protected void stopTracing (ITestDevice device)
매개변수 | |
---|---|
device | ITestDevice |
던지기 | |
---|---|
DeviceNotAvailableException |