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(String runName)

Creates a NativeBenchmarkTestParser.

Public methods

double getAvgOperationTime()
double getMaxOperationTime()
double getMinOperationTime()
String getRunName()
boolean isCancelled()

void processNewLines(String[] lines)

Public constructors

NativeBenchmarkTestParser

NativeBenchmarkTestParser (String runName)

Creates a NativeBenchmarkTestParser.

Parameters
runName String: the run name. Used for logging purposes.

Public methods

getAvgOperationTime

double getAvgOperationTime ()

Returns
double the average operation time

getMaxOperationTime

double getMaxOperationTime ()

Returns
double the maximum operation time

getMinOperationTime

double getMinOperationTime ()

Returns
double the minimum operation time

getRunName

String getRunName ()

Returns
String The name of the Test Run.

isCancelled

boolean isCancelled ()

Returns
boolean

processNewLines

void processNewLines (String[] lines)

Parameters
lines String