Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can i see how much memory my app is using out of its VM budget?

I've looked in DDMS but didn't see anything. Thanks.

like image 286
jfisk Avatar asked Dec 23 '10 07:12

jfisk


3 Answers

You should have clicked "Update Heap" button in DDMS in Devices view.

like image 120
Fedor Avatar answered Oct 24 '22 03:10

Fedor


You see only about 3Mb (which is great btw) because the VM allocates just as much as it needs. If you start loading images in your app you'll see it grow. When it reaches 16 (for 320x480 devices) or 24 (for larger devices) Mb, you'll get an OutOfMemory error

like image 35
zrgiu Avatar answered Oct 24 '22 03:10

zrgiu


sergiu posted some code here: How do I detect the heap size usage of an android application

like image 1
Someone Somewhere Avatar answered Oct 24 '22 02:10

Someone Somewhere