Metrics
Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |
---|---|---|---|---|
June 29, 2022 | - | - | - | 1.0.0-alpha02 |
Declaring dependencies
To add a dependency on CardView, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.
Add the dependencies for the artifacts you need in the build.gradle
file for
your app or module:
Groovy
dependencies { implementation "androidx.metrics:metrics-performance:1.0.0-alpha02" }
Kotlin
dependencies { implementation("androidx.metrics:metrics-performance:1.0.0-alpha02") }
For more information about dependencies, see Add build dependencies.
Feedback
Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.
See the Issue Tracker documentation for more information.
Version 1.0.0
Version 1.0.0-alpha02
June 29, 2022
androidx.metrics:metrics-performance:1.0.0-alpha02
is released. Version 1.0.0-alpha02 contains these commits.
API Changes
- Renamed
MetricsStateHolder
to just Holder (withinPerformanceMetricsState
): (I5a4d9, b/226565716, b/213499234)
Bug Fixes
- Fixed timing issue where states could be replaced with new values before the frames had been processed where the old state would have been correct (aosp/2061892, b/213499234)
- Fixed concurrent modification exception in adding/removing listeners (aosp/2092714, b/213499234)
- Made startTime calculations more accurate (aosp/2027704, b/213245198)
- Fixed bug in
FrameData.equals()
implementation (aosp/2025866, b/218296544)
Version 1.0.0-alpha01
February 9, 2022
androidx.metrics:metrics-performance:1.0.0-alpha01
is released. Version 1.0.0-alpha01 contains these commits.
New Features
- The
JankStats
library provides functionality to instrument and receive callbacks in your application at runtime which can help find real world performance problems. JankStats
combines an API that makes it easy to inject information about UI state with capabilities for tracking and reporting per-frame performance to allow developers to understand not whether an application has performance issues, but when and why.