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:包含新行的陣列。 |