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:包含新行的陣列。