在 Android Profiler 中寻找什么来了解性能问题?

问题描述 投票:0回答:1

在我的应用程序中,我从主页导航到 Google 地图并在地图上显示标记。 App 的 CPU 利用率飙升至 90%,我的内存从 180 升至 300。

我获取了这个内存堆转储,我应该查找什么才能知道是什么导致了如此高的资源利用率?

这是转储的截图-

enter image description here enter image description here enter image description here

显示所有课程时-

enter image description here enter image description here enter image description here enter image description here

android performance android-profiler
1个回答
0
投票

内存堆转储可以显示分配给 JVM 堆中对象的内存,包括本机内存(如果它们被 JVM 对象引用)。要了解应用程序的内存消耗,一个好的起点可能是 Android Studio Profiler 的“查看实时遥测”任务,它可以告诉您哪些类型的内存使用量增加了。以下是屏幕截图作为示例。

如果是Java内存,则适合使用堆转储。如果是本机内存,您可以尝试“跟踪内存消耗 - 本机分配”任务

© www.soinside.com 2019 - 2024. All rights reserved.