analyse a HPROF memory dump file from command line programmatically

Abhishek picture Abhishek · Apr 12, 2013 · Viewed 12.3k times · Source

I was investigation with analyzing a HPROF file using Eclipse's Memory Analyser (MAT). The dominator tree, reports and the OQL interface look really useful. But all this has to be done manually from the MAT software.

Is there a commandline interface so I can programmatically parse the HPROF and automatically generate custom reports.

This would be useful to integrate this a test infrastructure to do a automatic memory analysis.

Btw, the heapsize is will be between 10-60MB.

Answer

Deepak Bala picture Deepak Bala · Apr 13, 2013

ParseHeapDump.sh does what you're looking for. As for the follow up question I'm not sure what format the index files are stored in.