SimplePerfResult
  public
  
  
  
  class
  SimplePerfResult
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.util.SimplePerfResult | 
Object to hold all simpleperf test results
See also:
Summary
| Public constructors | |
|---|---|
| 
      SimplePerfResult()
      Constructor | |
| Public methods | |
|---|---|
| 
        
        
        
        
        
         | 
      getBenchmarkComments()
      Get benchmark comments | 
| 
        
        
        
        
        
         | 
      getBenchmarkMetrics()
      Get benchmark metrics | 
| 
        
        
        
        
        
        String | 
      getCommandRawOutput()
      Get command raw output stringIf no output, an empty string will be returned | 
| 
        
        
        
        
        
        String | 
      getSimplePerfRawOutput()
      Get simpleperf raw output stringIf 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
public SimplePerfResult ()
Constructor
Public methods
getBenchmarkComments
publicgetBenchmarkComments () 
Get benchmark comments
| Returns | |
|---|---|
|  | ERROR(/Map)key: benchmark name, value: comment | 
getBenchmarkMetrics
publicgetBenchmarkMetrics () 
Get benchmark metrics
| Returns | |
|---|---|
|  | ERROR(/Map)key: benchmark name, value: metrics | 
getCommandRawOutput
public String getCommandRawOutput ()
Get command raw output string
If no output, an empty string will be returned| Returns | |
|---|---|
| String | Stringcontains output for user-specified command | 
getSimplePerfRawOutput
public String getSimplePerfRawOutput ()
Get simpleperf raw output string
If no output, an empty string will be returned| Returns | |
|---|---|
| String | Stringcontains output on simpleperf results information | 
getTotalTestTime
public String getTotalTestTime ()
Get total test time
| Returns | |
|---|---|
| String | Stringindicates total test time | 
Protected methods
addBenchmarkComment
protected void addBenchmarkComment (String key, 
                String val)| Parameters | |
|---|---|
| key | String | 
| val | String | 
addBenchmarkMetrics
protected void addBenchmarkMetrics (String key, 
                String val)| Parameters | |
|---|---|
| key | String | 
| val | String | 
setCommandRawOutput
protected void setCommandRawOutput (String s)
| Parameters | |
|---|---|
| s | String | 
setSimplePerfRawOutput
protected void setSimplePerfRawOutput (String s)
| Parameters | |
|---|---|
| s | String | 
setTotalTestTime
protected void setTotalTestTime (String time)
| Parameters | |
|---|---|
| time | String | 
