NativeBenchmarkTestParser

public class NativeBenchmarkTestParser
extends MultiLineReceiver

java.lang.Object
   ↳ com.android.ddmlib.MultiLineReceiver
     ↳ com.android.tradefed.testtype.NativeBenchmarkTestParser


ベンチマーク テストデータの出力を解析し、オペレーションあたりの平均時間に関する指標を収集する IShellOutputReceiver

次の出力を確認します。

Time per iteration min: X avg: Y max: Z

概要

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

NativeBenchmarkTestParser(String runName)

NativeBenchmarkTestParser を作成します。

パブリック メソッド

double getAvgOperationTime()
double getMaxOperationTime()
double getMinOperationTime()
String getRunName()
boolean isCancelled()

void processNewLines(String[] lines)

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

NativeBenchmarkTestParser

public NativeBenchmarkTestParser (String runName)

NativeBenchmarkTestParser を作成します。

パラメータ
runName String: 実行名。ロギングに使用されます。

パブリック メソッド

getAvgOperationTime

public double getAvgOperationTime ()

戻り値
double 平均オペレーション時間

getMaxOperationTime

public double getMaxOperationTime ()

戻り値
double 最大動作時間

getMinOperationTime

public double getMinOperationTime ()

戻り値
double 最短運転時間

getRunName

public String getRunName ()

戻り値
String テスト実行の名前。

isCancelled

public boolean isCancelled ()

戻り値
boolean

processNewLines

public void processNewLines (String[] lines)

パラメータ
lines String