I am trying to programmatically analyze an hprof file. Using the hprof-conv tool in the android-sdk I generated a bunch of com.your.package.index files.
How do I programmatically parse these .index files?
I want run some custom analysis on the dominator tree, which is easy to do through MAT (Eclipse's Memory Analyser) manually but want to do it in an automated way.
You can try using the MAT from command lines and generate custom reports (dominator tree). In this you can either filter using the XML that can be used to generate the report or parse the report via a external code.
Refer: http://www.eclipse.org/forums/index.php/t/489594/
The above link should guide you through this task...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With