Ok, there is a '-z' option from hprof-conv which does exactly what I want :)
On Tuesday, August 18, 2015 at 11:48:40 AM UTC+8, Freepine wrote: > > Hi, > > I am trying to investigate my app's memory usage by dumping all the java > allocations with DDMS. However after converting the hprof dump and opening > it in MAT, it says there are totally 14.2MB allocated, while in DDMS "VM > heap" tab, it only shows 6.2MB in "Allocated" column. > Is that because that zygote space and image space in the heap is not > accounted? As the following messages were displayed in the logcat whenever > I click "Cause GC" button: > -- > static void art::Dbg::DdmsSendHeapSegments(bool) umimplemented Not > counting objects in space Space=TypeImageSpace xxx > static void art::Dbg::DdmsSendHeapSegments(bool) umimplemented Not > counting objects in space Space=TypeZygoteSpace xxx > ... > > If so, is there a way to filter out allocations from zygote and image > space in the dumped hprof file? So that I can analyze the allocations from > app space only. > > Thanks, > Freepine > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

