Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

SimplePerfStatResultParser

public final class SimplePerfStatResultParser
extends Object

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


A utility class to parse simpleperf result.

Should be useful when implementing test result receiver

Summary

Public methods

static SimplePerfResult parseRawOutput(String output)

Utility method to parse multiple lines of simpleperf output

static parseSingleLine(String line)

Utility method to parse single line of simpleperf results

Public methods

parseRawOutput

public static SimplePerfResult parseRawOutput (String output)

Utility method to parse multiple lines of simpleperf output

Parameters
output String: multiple lines of string

Returns
SimplePerfResult SimplePerfResult object to hold simpleperf result information

parseSingleLine

public static  parseSingleLine (String line)

Utility method to parse single line of simpleperf results

Parameters
line String: single line of simpleperf results

Returns
List of String contains information. If length is 0, no output parsed. If length is 1, it is total time. If length is 3, it contains metric(pos 0), benchmark(pos 1) and comment(pos 2)