to top
public class

NativeBenchmarkTestParser

extends MultiLineReceiver
java.lang.Object
   ↳ com.android.ddmlib.MultiLineReceiver
     ↳ com.android.tradefed.testtype.NativeBenchmarkTestParser

Class Overview

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)
Public Methods
double getAvgOperationTime()
double getMaxOperationTime()
double getMinOperationTime()
String getRunName()
boolean isCancelled()
void processNewLines(String[] lines)
[Expand]
Inherited Methods
From class com.android.ddmlib.MultiLineReceiver
From class java.lang.Object
From interface com.android.ddmlib.IShellOutputReceiver

Public Constructors

public NativeBenchmarkTestParser (String runName)

Parameters
runName the run name. Used for logging purposes.

Public Methods

public double getAvgOperationTime ()

Returns
  • the average operation time

public double getMaxOperationTime ()

Returns
  • the maximum operation time

public double getMinOperationTime ()

Returns
  • the minimum operation time

public String getRunName ()

public boolean isCancelled ()

public void processNewLines (String[] lines)