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
public NativeBenchmarkTestParser (String runName)
創建一個NativeBenchmarkTestParser
。
參數 |
---|
runName | String :運行名稱。用於記錄目的。 |
公共方法
獲取平均操作時間
public double getAvgOperationTime ()
獲取最大操作時間
public double getMaxOperationTime ()
getMinOperationTime
public double getMinOperationTime ()
獲取運行名稱
public String getRunName ()
取消
public boolean isCancelled ()
處理換行
public void processNewLines (String[] lines)