Fixed
Status Update
Comments
ro...@gmail.com <ro...@gmail.com> #2
Comment has been deleted.
cc...@google.com <cc...@google.com>
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
commit 0b2b3f0f84819e1d0daa687da728bcfcf00e31f4
Author: Chris Craik <ccraik@google.com>
Date: Thu Apr 25 12:50:46 2024
Throw clearer exception when metric produces 0 values for all iterations
Fixes: 314931695
Test: MetricResultTest#constructorThrowsIfEmpty
Relnote: "Throw clearer exception when macrobench metric returns zero
values for all iterations"
Change-Id: Iab58f90540ac47c15d1e013ce6d7dcc491babb5c
M benchmark/benchmark-common/src/androidTest/java/androidx/benchmark/MetricResultTest.kt
M benchmark/benchmark-common/src/main/java/androidx/benchmark/MetricResult.kt
https://android-review.googlesource.com/3062923
Branch: androidx-main
commit 0b2b3f0f84819e1d0daa687da728bcfcf00e31f4
Author: Chris Craik <ccraik@google.com>
Date: Thu Apr 25 12:50:46 2024
Throw clearer exception when metric produces 0 values for all iterations
Fixes: 314931695
Test: MetricResultTest#constructorThrowsIfEmpty
Relnote: "Throw clearer exception when macrobench metric returns zero
values for all iterations"
Change-Id: Iab58f90540ac47c15d1e013ce6d7dcc491babb5c
M benchmark/benchmark-common/src/androidTest/java/androidx/benchmark/MetricResultTest.kt
M benchmark/benchmark-common/src/main/java/androidx/benchmark/MetricResult.kt
pr...@google.com <pr...@google.com> #4
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.benchmark:benchmark-common:1.3.0-alpha05
Description
Component used: Macrobenchmark 1.2.0-SNAPSHOT
Sometimes I get an exception probably that some metrics didn't provide the same results.
I think the minimal thing to improve is at least add information about the metric so you can investigate more why this happenned?