簡單效能結果
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 |