GoogleBenchmarkResultParser

public class GoogleBenchmarkResultParser
extends Object

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


シェルから実行された 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)

個々の出力行を解析します。名前、反復、リアルタイム、cpu_time、秒あたりのバイト数、秒あたりのアイテム数、ラベル

パラメーター
output CollectingOutputReceiver : テスト出力が含まれています

戻り値
実行されたテストの数を含むマップ。

保護されたメソッド

parseJsonToMap

protected  parseJsonToMap (JSONObject j)

すべての json キーを調べて、一致する値を持つマップに配置するヘルパー。

パラメーター
j JSONObject

戻り値

スロー
JSONException