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 結果的實用方法

公共方法

解析原始輸出

public static SimplePerfResult parseRawOutput (String output)

解析多行 simpleperf 輸出的實用方法

參數
output String : 多行字串

退貨
SimplePerfResult SimplePerfResult物件保存 simpleperf 結果訊息

解析單行

public static  parseSingleLine (String line)

解析單行 simpleperf 結果的實用方法

參數
line String : 單行 simpleperf 結果

退貨
字串列表包含資訊。如果長度為 0,則不解析輸出。如果長度為1,則為總時間。如果長度為3,則包含metric(pos 0)、benchmark(pos 1)和comment(pos 2)