GoogleBenchmarkResultParser

public class GoogleBenchmarkResultParser
extends Object

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


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

概要

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

GoogleBenchmarkResultParser(String testClassName, ITestInvocationListener listener)

パブリック メソッド

Map<String, String> parse(CommandResult cmd_result)

個々の出力行を解析します。

保護されたメソッド

Map<String, String> parseJsonToMap(JSONObject j)

すべての JSON キーを調べて、対応する値とともにマップに格納するヘルパー。

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

GoogleBenchmarkResultParser

public GoogleBenchmarkResultParser (String testClassName, 
                ITestInvocationListener listener)

パラメータ
testClassName String

listener ITestInvocationListener

パブリック メソッド

parse

public Map<String, String> parse (CommandResult cmd_result)

個々の出力行を解析します。 name,iterations,real_time,cpu_time,time_unit,bytes_per_second,items_per_second,label, error_occurred,error_message

パラメータ
cmd_result CommandResult: テスト出力を含むデバイス コマンドの結果

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

保護されたメソッド

parseJsonToMap

protected Map<String, String> parseJsonToMap (JSONObject j)

すべての JSON キーを調べて、対応する値とともにマップに格納するヘルパー。

パラメータ
j JSONObject

戻り値
Map<String, String>

例外
JSONException