NativeStressTest解析器

public class NativeStressTestParser
extends MultiLineReceiver

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


一个IShellOutputReceiver ,用于解析压力测试数据输出,收集有关完成的迭代次数和每次迭代的平均时间的指标。

寻找以下输出

pass 0 ... ==== pass X Successfully completed X passes
其中“X”指的是迭代次数

概括

公共构造函数

NativeStressTestParser (String runName)

创建一个NativeStressTestParser

公共方法

int getIterationsCompleted ()
String getRunName ()
boolean isCancelled ()

void processNewLines (String[] lines)

公共构造函数

NativeStressTest解析器

public NativeStressTestParser (String runName)

创建一个NativeStressTestParser

参数
runName String : 运行名称。用于记录目的。

公共方法

获取迭代完成

public int getIterationsCompleted ()

退货
int一次或多次运行中完成的迭代总数

获取运行名称

public String getRunName ()

退货
String测试运行的名称。

取消

public boolean isCancelled ()

退货
boolean

处理换行

public void processNewLines (String[] lines)

参数
lines String