簡單性能結果
public class SimplePerfResult
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.SimplePerfResult |
對象保存所有 simpleperf 測試結果
也可以看看:
概括
公共構造函數 | |
---|---|
SimplePerfResult () 構造函數 |
公共方法 | |
---|---|
getBenchmarkComments () 獲取基準評論 | |
getBenchmarkMetrics () 獲取基準指標 | |
String | getCommandRawOutput () 獲取命令原始輸出字符串 如果沒有輸出,將返回空字符串 |
String | getSimplePerfRawOutput () 獲取 simpleperf 原始輸出字符串 如果沒有輸出,將返回空字符串 |
String | getTotalTestTime () 獲取總測試時間 |
受保護的方法 | |
---|---|
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 SimplePerfResult ()
構造函數
公共方法
獲取SimplePerfRawOutput
public String getSimplePerfRawOutput ()
獲取 simpleperf 原始輸出字符串
如果沒有輸出,將返回空字符串退貨 | |
---|---|
String | String 包含 simpleperf 結果信息的輸出 |
受保護的方法
添加基準評論
protected void addBenchmarkComment (String key, String val)
參數 | |
---|---|
key | String |
val | String |
添加基準指標
protected void addBenchmarkMetrics (String key, String val)
參數 | |
---|---|
key | String |
val | String |
設置命令原始輸出
protected void setCommandRawOutput (String s)
參數 | |
---|---|
s | String |
設置SimplePerfRawOutput
protected void setSimplePerfRawOutput (String s)
參數 | |
---|---|
s | String |
設置總測試時間
protected void setTotalTestTime (String time)
參數 | |
---|---|
time | String |