简体   繁体   English

android内存使用率和堆使用率

[英]android memory usage and heap usage

when I look at my application in a memory utility (like Memory Usage app), it shows my application using 33MB of memory. 当我在内存实用程序(例如“内存使用情况”应用程序)中查看我的应用程序时,它显示我的应用程序使用了33MB的内存。

If while debugging my app, I go into DDMS and look at the heap, it's taking 4MB. 如果在调试我的应用程序时,我进入DDMS并查看堆,则占用了4MB。

So at this point, I'm wondering where the other 29MB is being chewed up by. 所以在这一点上,我想知道其他29MB在哪里被占用。 Secondly, my concern is that I could wind up spending a huge amount of time trying to trim that 4MB to something much smaller like say 2-3MB, but that hardly seems like I'm putting a dent in the memory usage. 其次,我担心的是,我可能会花大量时间尝试将4MB缩减为2-3MB等较小的内容,但这似乎并没有减少内存的使用量。 So how do i get that memory usage down much more significantly? 那么,如何显着降低内存使用量呢?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM