堆大小、已分配、空闲之间的区别
我正在第一次测试我的应用程序有人可以解释一下DDMS工具中堆选项卡下的堆大小、已分配、空闲内存概念
ID HeapSize Allocated Free %Used %Objects
1 9.383 MB 3.798 MB 5.585 MB 40.47% 70,117
我无法理解这三个中应用程序的大小是多少列。我正在 NexusOne 手机上测试应用程序
i am testing my App first time can any one explain about Heap size,Allocated, free of memory concepts under heap Tab in the DDMS tool
ID HeapSize Allocated Free %Used %Objects
1 9.383 MB 3.798 MB 5.585 MB 40.47% 70,117
I can't understand what is the size of the App in these three columns. I am testing App on a NexusOne Phone
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
堆大小基本上是您的应用程序可以访问的内存量。 VM 将根据需要动态地让您的应用程序访问更多内存。已分配内存是您当前正在使用的内存,空闲内存是您可以访问但当前未使用的内存量(HeapSize = 已分配 + 空闲)。
The heap size is, basically, how much memory your app has access to. The VM will dynamically give your app access to more memory as it is required. The allocated memory is the memory you are currently using and the the free memory is how much you have access to but are not currently using (HeapSize = Alocated + Free).