GoogleBenchmarkResultParser

public class GoogleBenchmarkResultParser
extends Object

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


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

概要

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

GoogleBenchmarkResultParser(String testClassName, ITestInvocationListener listener)

パブリック メソッド

parse(CommandResult cmd_result)

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

保護されたメソッド

parseJsonToMap(JSONObject j)

すべての JSON キーを調べて、一致する値とともにマップに入れるためのヘルパー。

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

GoogleBenchmarkResultParser

public GoogleBenchmarkResultParser (String testClassName, 
                ITestInvocationListener listener)

パラメータ
testClassName String

listener ITestInvocationListener

パブリック メソッド

parse

public  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: テスト出力を含むデバイス コマンドの結果

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

保護されたメソッド

parseJsonToMap

protected  parseJsonToMap (JSONObject j)

すべての JSON キーを調べて、一致する値とともにマップに入れるためのヘルパー。

パラメータ
j JSONObject

戻り値

例外
JSONException