AtraceCollector

public class AtraceCollector
extends BaseDeviceMetricCollector

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


テスト中にトレースを実行し、結果を収集して呼び出しに記録する IMetricCollector

概要

パブリック コンストラクタ

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