Wednesday, June 22, 2011

[android-developers] Why does ddms heap size not match HPROF?

I'm doing memory profiling on my Xoom application. DDMS says my heap
size is "96.133M" and that I have "89.136M" allocated. I did a HPROF
dump, ran hprof-conv, and then loaded the .hprof file into MAT. It
says my heap is 37.3 MB. What gives?

Looking at the output of "adb logcat" while my app is running, it
seems to agree with ddms.

06-22 22:05:59.935: DEBUG/dalvikvm(11875): GC_FOR_ALLOC freed 0K, 3%
free 95699K/98567K, paused 172ms

(note the logcat message I grabbed was not taken at the exact same
time as the hprof -- at this time the sizes reported in logcat matched
what ddms says).

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate