SimplePerfStatResultParser
public
final
class
SimplePerfStatResultParser
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.SimplePerfStatResultParser |
A utility class to parse simpleperf result.
Should be useful when implementing test result receiverSee also:
Summary
Public methods | |
---|---|
static
SimplePerfResult
|
parseRawOutput(String output)
Utility method to parse multiple lines of simpleperf output |
static
|
parseSingleLine(String line)
Utility method to parse single line of simpleperf results |
Public methods
parseRawOutput
public static SimplePerfResult parseRawOutput (String output)
Utility method to parse multiple lines of simpleperf output
Parameters | |
---|---|
output |
String : multiple lines of string |
Returns | |
---|---|
SimplePerfResult |
SimplePerfResult object to hold simpleperf result information |
parseSingleLine
public staticparseSingleLine (String line)
Utility method to parse single line of simpleperf results
Parameters | |
---|---|
line |
String : single line of simpleperf results |
Returns | |
---|---|
|
List of String contains information. If length is 0, no output parsed. If length is 1, it is total time. If length is 3, it contains metric(pos 0), benchmark(pos 1) and comment(pos 2) |