android - Profiler 中的内存使用量比实际设备少得多

标签 android unity-game-engine memory profiler

今天,我将内存分析器连接到我的物理 S7 edge,5 分钟后我的平均内存使用量为 62 MB。另一方面,谷歌预发布报告显示使用量在 100 到 300 MB 之间。有谁知道这种巨大的差异从何而来?

最佳答案

它在谷歌文档中提到 How memory is counted ?

When using devices running Android 8.0 (API level 26) and higher, the Memory Profiler also shows some false-positive native memory usage in your app that actually belongs to the profiling tools. Up to 10MB of memory is added for ~100k Java objects. In a future version of the IDE, these numbers will be filtered out of your data.

关于android - Profiler 中的内存使用量比实际设备少得多,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59028533/

相关文章:

java - 将 Intent 从一个应用程序广播到另一个应用程序

android - 无法在 Unity 5.3.4 中使用 facebook sdk 和 google play 一起为 android 构建

c# - 使用 protobuf-net 反序列化字典

java - 在 C#/Unity 中启动外部 Android 应用程序

c - 确定缓冲区的总大小(以字节为单位)

android - 执行过去迭代备份时出现异常 : Source

android - 如何制作一个带倒圆角的矩形?

android - 如何在android中写入2字节或4字节的BLE特征值?

php - 如何在linux中监控php的内存使用情况?

java - 使用字符串文字池初始化的字符串变量