NativeStressTestParser
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)
|
|
公共方法 | |
|---|---|
int
|
getIterationsCompleted()
|
String
|
getRunName()
|
boolean
|
isCancelled()
|
void
|
processNewLines(String[] lines)
当远程进程接收到新行时调用。 |
公共构造函数
NativeStressTestParser
public NativeStressTestParser (String runName)
| 参数 | |
|---|---|
runName |
String:运行名称。用于日志记录。 |
公共方法
getIterationsCompleted
public int getIterationsCompleted ()
| 返回 | |
|---|---|
int |
一次或多次运行中完成的总迭代次数 |
getRunName
public String getRunName ()
| 返回 | |
|---|---|
String |
测试运行的名称。 |
isCancelled
public boolean isCancelled ()
| 返回 | |
|---|---|
boolean |
|
processNewLines
public void processNewLines (String[] lines)
当远程进程接收到新行时调用。
可以保证,当向此方法提供行时,这些行是完整的。
| 参数 | |
|---|---|
lines |
String:包含新行的数组。 |