指标测试
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
指标测试通常用于调用硬件抽象层 (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 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-05-05。
[{
"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":"其他"
}]