Reputation: 3036
I made a java app for android 2.3.4 and would like to find out how much memory of the available heap it is using.
Reason for that is that the dalvik vm has a heap size limit and on my current device that limit is 32mb but I would also want to run it on devices with a heap size of only 16mb and need to find out if I have to make memory optimizations.
How can I find out how much of the current heap size is being used?
Edit: I did find (with the help of the answer) some useful pointers here:
http://android-developers.blogspot.jp/2011/03/memory-analysis-for-android.html
Upvotes: 1
Views: 762
Reputation: 3804
DDMS supports tracking the heap size. Have a look here under "Viewing heap usage for a process"
Upvotes: 3