Stay organized with collections
Save and categorize content based on your preferences.
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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-10-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-08 UTC."],[],[]]