為配合主幹穩定開發模型,並確保生態系統的平台穩定性,我們將自 2026 年起,在第 2 季和第 4 季將原始碼發布至 AOSP。如要建構及貢獻 AOSP,請使用 android-latest-release。android-latest-release 資訊清單分支版本一律會參照推送至 Android 開放原始碼計畫的最新版本。詳情請參閱「Android 開放原始碼計畫變更」。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
GoogleBenchmarkResultParser
public
class
GoogleBenchmarkResultParser
extends Object
| java.lang.Object
|
| ↳ |
com.android.tradefed.testtype.GoogleBenchmarkResultParser
|
剖析從殼層執行的 Google 基準化結果,並傳回包含所有結果的地圖。
摘要
受保護的方法 |
Map<String, String>
|
parseJsonToMap(JSONObject j)
Helper that go over all json keys and put them in a map with their matching value.
|
公用建構函式
GoogleBenchmarkResultParser
public GoogleBenchmarkResultParser (String testClassName,
ITestInvocationListener listener)
| 參數 |
testClassName |
String |
listener |
ITestInvocationListener |
公用方法
parse
public Map<String, String> parse (CommandResult cmd_result)
剖析個別輸出行。
name、iterations、real_time、cpu_time、time_unit、bytes_per_second、items_per_second、label、
error_occurred、error_message
| 參數 |
cmd_result |
CommandResult:包含測試輸出的裝置指令結果 |
| 傳回 |
Map<String, String> |
包含執行測試次數的地圖。 |
受保護的方法
parseJsonToMap
protected Map<String, String> parseJsonToMap (JSONObject j)
這個輔助程式會檢查所有 JSON 鍵,並將這些鍵及其相符的值放入對應中。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2026-06-22 (世界標準時間)。
[null,null,["上次更新時間:2026-06-22 (世界標準時間)。"],[],[]]