測量應用程式效能
您可以使用獨立的 Android Studio Profiler 版本來測量應用程式的效能。如要啟動分析器,請執行下列步驟:
- 執行偵錯工具。
- 按一下 Visual Studio 工具列中的分析器
按鈕。
按一下「SESSIONS」旁的 + 按鈕,然後選取可進行偵錯的程序。

圖 1.在分析器中選取程序
分析器會顯示下列類別的即時使用統計資料:CPU、記憶體、網路和能源。

圖 2.範例 Endless Tunnel 應用程式的分析器統計資料
如要進一步瞭解特定類別,請按一下該類別的圖表。

圖 3.記憶體詳細統計資料
如要進一步瞭解如何使用分析器,請參閱「Android Studio Profiler 說明文件」。
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-05-09 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Translation issue"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]