analyse a HPROF memory dump file from command line programmatically

☆樱花仙子☆ 提交于 2019-11-28 23:06:53

问题


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.


回答1:


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.




回答2:


See bitbucket.org/joebowbeer/andromat, which is adapted from bitbucket.org/ekabanov/mat, which is a stripped-down command line version of Eclipse Memory Analyzer.



来源:https://stackoverflow.com/questions/15977723/analyse-a-hprof-memory-dump-file-from-command-line-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!