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保存 simpleperf 結果信息的SimplePerfResult對象

解析單線

public static  parseSingleLine (String line)

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

參數
line String :單行 simpleperf 結果

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