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.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"lastModified": "Last updated 2023-03-08 UTC.",
"confidential": False
}