android/performance-samples
소개
Android 성능 관련 API와 모범 사례를 보여 주는 샘플
학습 및 교육측정된 스타 증가
- in 24h
- 0
- in 7 days
- +4
- in 15 days
- +4
- in 1 month
- +9
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalAndroid Performance
A collection of samples using the performance libraries.
You can learn more about Android Performance at https://d.android.com/performance.
Macrobenchmark sample
This sample shows how to use the Macrobenchmark library for testing application startup and runtime
performance cases, such as scrolling a RecyclerView or LazyColumn to measure jank.
Baseline Profiles can be generated with the Macrobenchmark library. This sample contains code to generate a baseline profile.
The sample also includes a GitHub workflow to run Macrobenchmarks on Firebase Test Lab. For more information refer to the README.md.
The Macrobenchmark sample also demonstrates using Jetpack Compose with Macrobenchmark.
Microbenchmark sample
This sample shows how to use the Benchmark library to benchmark code and UI from library modules.
Important Notes
- Make sure your device's screen is on before running benchmarks
JankStats sample
This sample shows how to set up and use the JankStats library to detect janky frames.
Compose recomposition tracing
A script that records a Perfetto system trace together with Compose composition and recomposition tracing from your app, and merges them into a single file you can open in ui.perfetto.dev.
Reporting Issues
You can report an Issue with a sample using this repository. If you find an issue with a specific library, report it using the corresponding issue tracker link available in the sample README file.
Additional Resources
- Example of benchmarking an androidx.paging backed RecyclerView
- Example of benchmarking asynchronously scheduled background work
관련 프로젝트 살펴보기
불러오는 중…