アトレースコレクター

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)

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

アトレースコレクター

public AtraceCollector ()

パブリックメソッド

テスト終了時

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

テスト開始時

public void onTestStart (DeviceMetricData testData)

テストケース開始時のコールバック。

パラメーター
testData DeviceMetricData : テスト ケースのデータを保持するDeviceMetricData

投げる
DeviceNotAvailableException

保護されたメソッド

フルログパス

protected String fullLogPath ()

戻り値
String

getLogType

protected LogDataType getLogType ()

戻り値
LogDataType

トレース開始

protected void startTracing (ITestDevice device)

パラメーター
device ITestDevice

投げる
DeviceNotAvailableException

停止トレース

protected void stopTracing (ITestDevice device)

パラメーター
device ITestDevice

投げる
DeviceNotAvailableException