指標テスト
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
一般的に、指標テストは、Hardware Abstraction Layer(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-05-15 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":"その他"
}]
{
"last_modified": "最終更新日 2024-05-15 UTC。",
"state": ""
}