提供意見
指標測試
度量標準測試通常用於執行硬件抽象層 (HAL) 或直接與較低級別的系統服務交互。為了利用持續測試服務,應該使用google-benchmark 框架構建度量測試。
例子 在以下位置查看示例度量測試模塊設置: bionic/benchmarks/bionic-benchmarks
步驟總結 測試模塊配置文件應使用BUILD_NATIVE_BENCHMARK
構建規則,以便自動包含 google-benchmark 依賴項。 使用 make 構建測試模塊:
make -j40 bionic-benchmarks
使用 Trade Federation 測試工具自動安裝和運行:
make tradefed-all -j
tradefed.sh run template/local_min --template:map test=bionic-benchmarks
像這樣手動安裝和運行:
將生成的測試二進制推送到設備上:
adb push ${OUT}/data/benchmarktest/bionic-benchmarks/bionic-benchmarks32 \
/data/benchmarktest/bionic-benchmarks/bionic-benchmarks32
通過在設備上調用測試二進製文件來執行測試:
adb shell /data/benchmarktest/bionic-benchmarks/bionic-benchmarks32
提供意見
Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-04-06 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
想進一步說明嗎?