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

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

Returns
boolean

processNewLines

public void processNewLines (String[] lines)

Parameters
lines String