GoogleBenchmarkResultParser
public
class
GoogleBenchmarkResultParser
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.testtype.GoogleBenchmarkResultParser
|
Parses the results of Google Benchmark that run from shell,
and return a map with all the results.
Summary
Protected methods |
|
parseJsonToMap(JSONObject j)
Helper that go over all json keys and put them in a map with their matching value.
|
Public constructors
GoogleBenchmarkResultParser
public GoogleBenchmarkResultParser (String testClassName,
ITestInvocationListener listener)
Parameters |
testClassName |
String |
listener |
ITestInvocationListener |
Public methods
parse
public parse (CommandResult cmd_result)
Parse an individual output line.
name,iterations,real_time,cpu_time,time_unit,bytes_per_second,items_per_second,label,
error_occurred,error_message
Parameters |
cmd_result |
CommandResult : device command result that contains the test output |
Returns |
|
a map containing the number of tests that ran. |
Protected methods
parseJsonToMap
protected parseJsonToMap (JSONObject j)
Helper that go over all json keys and put them in a map with their matching value.