GoogleBenchmarkResultParser

public class GoogleBenchmarkResultParser
extends Object

java.lang.オブジェクト
com.android.tradefed.testtype.GoogleBenchmarkResultParser


シェルから実行される Google ベンチマークの結果を解析し、すべての結果を含むマップを返します。

まとめ

パブリックコンストラクター

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 時間、秒あたりのバイト数、秒あたりのアイテム数、ラベル

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

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

保護されたメソッド

parseJsonToMap

protected  parseJsonToMap (JSONObject j)

すべての JSON キーを調べて、それらを一致する値とともにマップに配置するヘルパー。

パラメーター
j JSONObject

戻り値

投げる
JSONException