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)

テストケースが終了したときのコーリングバック。

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: テストケースのデータを保持する DeviceMetricDataonTestStart(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

getLogType

protected LogDataType getLogType ()

戻り値
LogDataType

startTracing

protected void startTracing (ITestDevice device)

パラメータ
device ITestDevice

例外
DeviceNotAvailableException

stopTracing

protected void stopTracing (ITestDevice device)

パラメータ
device ITestDevice

例外
DeviceNotAvailableException