PerfettoTraceRecorder

public class PerfettoTraceRecorder
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.PerfettoTraceRecorder


ITestDevice で perfetto トレースを記録するためのユーティリティ クラス。

概要

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

PerfettoTraceRecorder()

パブリック メソッド

void startTrace(ITestDevice device, String traceConfigFileName, Map<String, String> extraConfigs)

デバイスで perfetto トレースの記録を開始します。

File stopTrace(ITestDevice device)

デバイスでの perfetto トレースの記録を停止し、ファイルを取得します。

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

PerfettoTraceRecorder

public PerfettoTraceRecorder ()

パブリック メソッド

startTrace

public void startTrace (ITestDevice device, 
                String traceConfigFileName, 
                Map<String, String> extraConfigs)

デバイスで perfetto トレースの記録を開始します。トレースの記録を停止するには、後で PerfettoTraceRecorder.stopTrace(ITestDevice) を呼び出す必要があります。

パラメータ
device ITestDevice: トレースが記録される ITestDevice

traceConfigFileName String: トレース構成ファイルの名前。

extraConfigs Map: トレース構成ファイルに追加する追加構成のマップ。

例外
IOException

stopTrace

public File stopTrace (ITestDevice device)

デバイスでの perfetto トレースの記録を停止し、ファイルを取得します。

パラメータ
device ITestDevice: 録画を停止するデバイス。

戻り値
File ホスト側の perfetto トレース ファイルを返します。失敗した場合は null を返します。