應用程式效能指南

本指南簡介您可以透過哪些程式庫、工具和最佳做法來檢查、改善及監控 Android 效能。

使用者會希望應用程式可以快速啟動、流暢轉譯,並且只使用少量的記憶體和電池用量。本指南各節將介紹工具、程式庫和最佳做法的相關資訊與深入分析,協助您改善應用程式效能。

精選
請參加應用程式效能測驗,取得應用程式效能分數。每項分數都會附上實用洞察資料、評估結果和最佳化建議,協助您改善應用程式效能。
瞭解如何在開發期間檢查應用程式效能。
改善實際工作環境中最重要的應用程式效能。
在實際工作環境中監控應用程式效能,找出潛在的瓶頸。
精選
如要提升應用程式效能,最快速有效的方式就是實作基準設定檔。
精選
透過 DEX 版面配置最佳化功能,您可以改正啟動期間所用程式碼的位置,減少主要頁面錯誤次數。

精選範例

使用 Macrobenchmark 範例程式庫測試應用程式啟動和執行階段的效能,例如藉由捲動 RecyclerView 測量卡頓情形。
使用 Benchmark 程式庫對程式庫模組的程式碼和 UI 執行基準測試。
使用 JankStats 程式庫監控應用程式效能。

最新消息和影片

Welcome to Now in Android, your ongoing guide to what’s new and notable in the world of Android development. Today, we're covering updates on Cross device SDK Developer Preview, CameraX 1.2 Beta, 5 years of Kotlin, AndroidX, video content and more!

Welcome to the live Q&A for the Performance series for MAD Skills! Join Ben Weiss, Tomáš Mlynarič, Carmen Jackson, Rahul Ravikumar, and Chris Craik to get answers to the Performance questions you may have. Catch more videos on Performance →

On this episode of MAD Skills on Performance, Ben Weiss walks you through monitoring app performance. Learn tools, products, and best practices to keep your app performing at its best! Measuring Performance → https://goo.gle/3vZgLBn Performance

其他資源

Reddit is one of the world’s largest internet forums, bringing together countless communities looking for entertainment, answers to everyday questions, and so much more. Recently, the team optimized its Android app to reduce startup times and improve

NordVPN is a virtual private network (VPN) app that protects users while they’re browsing the web by providing them a more secure and private connection. As a network utility, NordVPN’s users deserve a responsive UI, allowing them to set up their

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.