SimplePerfResult

public class SimplePerfResult
extends Object

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


Object to hold all simpleperf test results

Summary

Public constructors

SimplePerfResult()

Constructor

Public methods

Map<String, String> getBenchmarkComments()

Get benchmark comments

Map<String, String> getBenchmarkMetrics()

Get benchmark metrics

String getCommandRawOutput()

Get command raw output string

If no output, an empty string will be returned

String getSimplePerfRawOutput()

Get simpleperf raw output string

If no output, an empty string will be returned

String getTotalTestTime()

Get total test time

Protected methods

void addBenchmarkComment(String key, String val)
void addBenchmarkMetrics(String key, String val)
void setCommandRawOutput(String s)
void setSimplePerfRawOutput(String s)
void setTotalTestTime(String time)

Public constructors

SimplePerfResult

SimplePerfResult ()

Constructor

Public methods

getBenchmarkComments

Map<String, String> getBenchmarkComments ()

Get benchmark comments

Returns
Map<String, String> Map key: benchmark name, value: comment

getBenchmarkMetrics

Map<String, String> getBenchmarkMetrics ()

Get benchmark metrics

Returns
Map<String, String> Map key: benchmark name, value: metrics

getCommandRawOutput

String getCommandRawOutput ()

Get command raw output string

If no output, an empty string will be returned

Returns
String String contains output for user-specified command

getSimplePerfRawOutput

String getSimplePerfRawOutput ()

Get simpleperf raw output string

If no output, an empty string will be returned

Returns
String String contains output on simpleperf results information

getTotalTestTime

String getTotalTestTime ()

Get total test time

Returns
String String indicates total test time

Protected methods

addBenchmarkComment

void addBenchmarkComment (String key, 
                String val)

Parameters
key String
val String

addBenchmarkMetrics

void addBenchmarkMetrics (String key, 
                String val)

Parameters
key String
val String

setCommandRawOutput

void setCommandRawOutput (String s)

Parameters
s String

setSimplePerfRawOutput

void setSimplePerfRawOutput (String s)

Parameters
s String

setTotalTestTime

void setTotalTestTime (String time)

Parameters
time String