以编程方式从命令行分析HPROF内存转储文件 [英] analyse a HPROF memory dump file from command line programmatically

查看:144
本文介绍了以编程方式从命令行分析HPROF内存转储文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究使用Eclipse的内存分析器(MAT)分析HPROF文件. 支配者树,报告和OQL界面看起来非常有用.但是,所有这些都必须通过MAT软件手动完成.

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.

有一个命令行界面,以便我可以以编程方式解析HPROF并自动生成自定义报告.

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.

顺便说一句,堆大小将在10-60MB之间.

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

推荐答案

ParseHeapDump.sh 可以满足您的需求.至于后续问题,我不确定索引文件以什么格式存储.

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.

这篇关于以编程方式从命令行分析HPROF内存转储文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆