9

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

jfisk
  • 6,125
  • 20
  • 77
  • 113

3 Answers3

1

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

Fedor
  • 43,261
  • 10
  • 79
  • 89
  • when i do it only says Heap Size which is only about 3MB or so. I know (depending on hardware) the VM budget is typically 16 or 24 MB. – jfisk Dec 23 '10 at 17:11
1

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

zrgiu
  • 6,200
  • 1
  • 33
  • 35
1

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

Community
  • 1
  • 1
Someone Somewhere
  • 23,475
  • 11
  • 118
  • 166