Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit 6eb7487240706f3f95a33fb45428bffce4370f6f
Author: Chris Craik <ccraik@google.com>
Date: Fri Oct 29 11:30:56 2021
Add experimental TraceSectionMetric
Fixes:204572664
Test: TraceSectionMetricTest
Relnote: "Add experimental TraceSectionMetric for custom trace-based
timing measurements."
Initial test of a customizable trace content metric. Eventually, we
can expand to allow apps to define completely custom metrics.
Change-Id: I99db1c735f639a626bdc023b477058bf24bb7602
M benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/Metric.kt
A benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/ExperimentalMetricApi.kt
A benchmark/benchmark-macro/src/androidTest/java/androidx/benchmark/macro/TraceSectionMetricTest.kt
M benchmark/benchmark-macro/api/public_plus_experimental_current.txt
https://android-review.googlesource.com/1875337
Branch: androidx-main
commit 6eb7487240706f3f95a33fb45428bffce4370f6f
Author: Chris Craik <ccraik@google.com>
Date: Fri Oct 29 11:30:56 2021
Add experimental TraceSectionMetric
Fixes:204572664
Test: TraceSectionMetricTest
Relnote: "Add experimental TraceSectionMetric for custom trace-based
timing measurements."
Initial test of a customizable trace content metric. Eventually, we
can expand to allow apps to define completely custom metrics.
Change-Id: I99db1c735f639a626bdc023b477058bf24bb7602
M benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/Metric.kt
A benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/ExperimentalMetricApi.kt
A benchmark/benchmark-macro/src/androidTest/java/androidx/benchmark/macro/TraceSectionMetricTest.kt
M benchmark/benchmark-macro/api/public_plus_experimental_current.txt
Description
Custom section tracing was extremely useful for measuring test performance:
Let's add that API as experimental for now to see what that enables, and we can figure out how to extend it post 1.1