應用程式效能指南

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

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

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

精選範例

使用 Macrobenchmark 範例程式庫測試應用程式啟動和執行階段的效能,例如藉由捲動 RecyclerView 測量卡頓情形。
使用 Benchmark 程式庫對程式庫模組的程式碼和 UI 執行基準測試。
使用 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.