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 staticparseSingleLine (String line)
解析单行simpleperf结果的实用程序方法
参数 | |
---|---|
line | String :simpleperf结果的单行 |
退货 | |
---|---|
字符串列表包含信息。如果length为0,则不分析任何输出。如果length为1,则为总时间。如果length为3,则它包含度量(位置0),基准(位置1)和注释(位置2) |