自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
GoogleBenchmarkResultParser
public
class
GoogleBenchmarkResultParser
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.testtype.GoogleBenchmarkResultParser
|
剖析從殼層執行的 Google Benchmark 結果,並傳回包含所有結果的對照表。
摘要
受保護的方法 |
|
parseJsonToMap(JSONObject j)
輔助程式會遍歷所有 JSON 鍵,並將這些鍵與相符的值放入對應的對照表。
|
公用建構函式
GoogleBenchmarkResultParser
public GoogleBenchmarkResultParser (String testClassName,
ITestInvocationListener listener)
參數 |
testClassName |
String |
listener |
ITestInvocationListener |
公用方法
parse
public 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 :包含測試輸出的裝置指令結果 |
受保護的方法
parseJsonToMap
protected parseJsonToMap (JSONObject j)
輔助程式會遍歷所有 JSON 鍵,並將這些鍵與相符的值放入對應的對應項目中。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-03-26 (世界標準時間)。
[null,null,["上次更新時間:2025-03-26 (世界標準時間)。"],[],[]]