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 staticparseSingleLine (String line)
解析单行 simpleperf 结果的实用方法
参数 | |
---|---|
line | String :单行 simpleperf 结果 |
退货 | |
---|---|
字符串列表包含信息。如果长度为 0,则不解析任何输出。如果长度为 1,则为总时间。如果长度为3,则包含metric(pos 0)、benchmark(pos 1)和comment(pos 2) |