SimplePerfStatResultParser

public final class SimplePerfStatResultParser
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.SimplePerfStatResultParser


用於剖析 simpleperf 結果的工具類別。

實作測試結果接收器時,應會很實用

另請參閱:

摘要

公用方法

static SimplePerfResult parseRawOutput(String output)

用於剖析多行 simpleperf 輸出的公用方法

static parseSingleLine(String line)

用於剖析單行 Simpleperf 結果的工具方法

公用方法

parseRawOutput

public static SimplePerfResult parseRawOutput (String output)

用於剖析多行 simpleperf 輸出的公用方法

參數
output String:多行字串

傳回
SimplePerfResult SimplePerfResult 物件,用於儲存 Simpleperf 結果資訊

parseSingleLine

public static  parseSingleLine (String line)

用於剖析單行 Simpleperf 結果的工具方法

參數
line String:單行 Simpleperf 結果

傳回
字串清單包含資訊。如果長度為 0,則不會剖析任何輸出內容。如果長度為 1,則為總時間。如果長度為 3,則包含指標(pos 0)、基準(pos 1) 和註解(pos 2)