Stay organized with collections
Save and categorize content based on your preferences.
NativeBenchmarkTestParser
public
class
NativeBenchmarkTestParser
extends MultiLineReceiver
java.lang.Object
|
↳ |
com.android.ddmlib.MultiLineReceiver
|
|
↳ |
com.android.tradefed.testtype.NativeBenchmarkTestParser
|
A IShellOutputReceiver
that parses the benchmark test data output, collecting metrics on
average time per operation.
Looks for the following output
Time per iteration min: X avg: Y max: Z
Summary
Public constructors
NativeBenchmarkTestParser
public NativeBenchmarkTestParser (String runName)
Creates a NativeBenchmarkTestParser
.
Parameters |
runName |
String : the run name. Used for logging purposes. |
Public methods
getAvgOperationTime
public double getAvgOperationTime ()
Returns |
double |
the average operation time |
getMaxOperationTime
public double getMaxOperationTime ()
Returns |
double |
the maximum operation time |
getMinOperationTime
public double getMinOperationTime ()
Returns |
double |
the minimum operation time |
getRunName
public String getRunName ()
Returns |
String |
The name of the Test Run. |
isCancelled
public boolean isCancelled ()
processNewLines
public void processNewLines (String[] lines)
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 2023-03-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 2023-03-08 UTC."],[],[]]