to top
public class

NativeStressTestParser

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

Class Overview

A IShellOutputReceiver that parses the stress test data output, collecting metrics on number of iterations complete and average time per iteration.

Looks for the following output

pass 0 ... ==== pass X Successfully completed X passes
where 'X' refers to the iteration number

Summary

Public Constructors
NativeStressTestParser(String runName)
Public Methods
int getIterationsCompleted()
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 NativeStressTestParser (String runName)

Creates a NativeStressTestParser.

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

Public Methods

public int getIterationsCompleted ()

Returns
int the total number of iterations completed across one or more runs

public String getRunName ()

Returns
String

public boolean isCancelled ()

Returns
boolean

public void processNewLines (String[] lines)

Parameters
lines String