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テスト実行の名前。

キャンセルされました

public boolean isCancelled ()

戻り値
boolean

processNewLines

public void processNewLines (String[] lines)

パラメーター
lines String