应用性能指南

本指南简要介绍了您可在 Android 上用于检查、提升和监控性能的库、工具以及最佳实践。

用户希望应用能够快速启动、流畅渲染,并且只需较少的内存和电池用量。本指南的各个部分将提供有关工具、库和最佳实践的信息和分析数据,以协助您提高应用性能。

精选
请参加应用性能知识问答,获取应用性能得分。每个得分都包含富有实用价值的分析洞见、评估结果和建议,有助于提升应用的性能。
了解如何在开发期间检查应用性能。
提高对生产环境至关重要的应用性能。
监控应用在生产环境中的性能,了解潜在的瓶颈。
精选
实现基准配置文件是在应用中实现性能提升的最快、最高效的方法。
精选
通过 DEX 布局优化,您可以优化启动期间所使用代码的局部性,从而减少主要页面错误的数量。

精选示例

使用 Macrobenchmark 示例库测试应用启动和运行时性能用例,例如滚动 RecyclerView 以测量卡顿情况。
使用 Benchmark 库对库模块中的代码和界面进行基准化分析。
使用 JankStats 库监控应用的性能。

最新资讯和视频

未找到任何结果。

更多资源

Lyft is committed to app excellence. They have to be. For a rideshare app — providing a vital, time-sensitive service to millions of drivers and riders every day — a slow or unresponsive app adds unacceptable friction.

Josh is a short-video app from India, launched in 2020. One of the fastest growing short-video apps with over 124 million MAUs, optimizing it across a range of devices (high, mid, low end) and maintaining a standard experience across all of them is critical for their success. Improving app startups time and making the app responsive helped them achieve success.

Zomato is an Indian multinational restaurant aggregator and food delivery company serving customers across 500 cities in India alone.