Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

parse memory snapshot hprof index files programmatically

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.

like image 473
Abhishek Avatar asked Apr 12 '13 19:04

Abhishek


1 Answers

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...

like image 104
Karthik S Avatar answered Nov 14 '22 03:11

Karthik S