Post-mortem analysis [message #638742] |
Fri, 12 November 2010 12:44  |
Eclipse User |
|
|
|
Hello
I've seen your talk at ESE2010 and immediately liked MAT - today, I finally got the chance to try it out myself. The information you get out of a memory dump is amazing, and could be really useful in a lot of ways.
I haven't looked at the sources yet, but would it be possible to automate the report generation from a .hprof file without involving any user interface? That way, users could send us an automatically generated memory analysis, without having to know what to do with a .hprof file, or how to use MAT themselves. If that was possible, we could finally get some decent bug reports that include really useful information, instead of "it just crashed" 
What do you think?
-Martin
|
|
|
Re: Post-mortem analysis [message #638744 is a reply to message #638742] |
Fri, 12 November 2010 12:54  |
Eclipse User |
|
|
|
Hi Martin,
thanks for the good feedback!
And, Yes, it is possible to execute the reports in batch mode.
There is a script file ParseHeapDump under /mat. You can give it as parameter not only the dump to parse, but also the id of the report to be executed.
This are some comments from the script:
REM
REM This script parses a heap dump.
REM
REM Usage: ParseHeapDump.bat <path/to/dump.hprof> [report]*
REM
REM The leak report has the id org.eclipse.mat.api:suspects
REM
If you create your own reports, you can execute them the same way. The wiki pages about extending MAT are still in construcition, but I believe they are to some extend usable. You can find the links at the bottom here:
http://wiki.eclipse.org/index.php?title=MemoryAnalyzer/Contr ibutor_Reference#Writing_plugins_for_the_Memory_Analyzer
Let me know if this helps.
Krum
|
|
|
Powered by
FUDForum. Page generated in 0.03465 seconds