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 List<String> parseSingleLine(String line)

Utility method to parse single line of simpleperf results

Public methods

parseRawOutput

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

List<String> parseSingleLine (String line)

Utility method to parse single line of simpleperf results

Parameters
line String: single line of simpleperf results
Returns
List<String> 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)