GoogleBenchmarkResultParser

public class GoogleBenchmarkResultParser
extends Object

java.lang.Object
com.android.tradefed.testtype.GoogleBenchmarkResultParser


解析從 shell 運行的 Google Benchmark 結果,並返回包含所有結果的映射。

概括

公共構造函數

GoogleBenchmarkResultParser (String testClassName, ITestInvocationListener listener)

公共方法

parse ( CollectingOutputReceiver output)

解析單個輸出行。

受保護的方法

parseJsonToMap (JSONObject j)

遍歷所有 json 鍵並將它們放入具有匹配值的映射中的助手。

公共構造函數

GoogleBenchmarkResultParser

public GoogleBenchmarkResultParser (String testClassName, 
                ITestInvocationListener listener)

參數
testClassName String

listener ITestInvocationListener

公共方法

解析

public  parse (CollectingOutputReceiver output)

解析單個輸出行。名稱,迭代,real_time,cpu_time,bytes_per_second,items_per_second,標籤

參數
output CollectingOutputReceiver :包含測試輸出

退貨
包含運行的測試數量的地圖。

受保護的方法

parseJsonToMap

protected  parseJsonToMap (JSONObject j)

遍歷所有 json 鍵並將它們放入具有匹配值的映射中的助手。

參數
j JSONObject

退貨

投擲
JSONException