[{
"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"
}]
用于优化游戏的工具
要准备环境以便调试和优化 Android 游戏,请获取以下工具来帮助您分析 CPU 使用情况和图形调用。
CPU
使用以下工具来评估和改进游戏的 CPU 性能:
内存
- Meminfo:收集内存统计信息以显示分配的 PSS 内存量以及适用的类别。使用命令
adb shell dumpsys meminfo package-name
或 MemoryInfo
调用。
- Perfetto:收集设备的性能和内存信息,并显示在基于网页的界面中。Perfetto 支持任意长度的跟踪记录,因此您可以查看 RSS 随着时间的变化。从“系统跟踪”应用启用长跟踪记录。
- bugreport:显示游戏崩溃的原因是内存耗尽或还是被 LMK 终止。使用命令
adb bugreport bugreport-name
或转至 Developer Options > Bug report。
图形
使用以下工具来评估和改进游戏的显示管道:
其他资源
[{
"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"
}]
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2019-12-27 UTC.