公制測試
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
指標測試通常用於練習硬體抽象層 (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
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2024-03-18 (世界標準時間)。
[{
"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":"其他"
}]
{
"last_modified": "上次更新時間:2024-03-18 (世界標準時間)。",
"state": ""
}