Command Line processing of hprof [message #1065652] |
Wed, 26 June 2013 19:28  |
Eclipse User |
|
|
|
Hi everyone,
I would like to be able to use MAT to process my hprof dumps headlessly through command line shell scripts. The main features that I am looking for are outputting the histogram and dominator trees in csv format (which i have achieved using a rudimentary report xml modified from the built-in overview report); a dynamically generated output based on the input OQL command, ie: <shell script> <path_to_hprof> <OQL query>; and also a diff between different versions of hprof files.
There are still gaping holes in my knowledge, for instance, how do command line inputs get mapped into the query classes arguments, whether report xmls are extensible beyond the very basic as examplified by the built-in reports overview, suspects and top_components, and the more intricate relationships between query classes and the results they output.
Also I can't seem to get the dropins folder to make MAT recognize my custom plugin from command line calls. Perhaps I have put them in the wrong place (mat root folder)?
Thank you in advance.
Cheers,
Yu Yang Lai
|
|
|
|
|
|
|
Re: Command Line processing of hprof [message #1069290 is a reply to message #1068232] |
Mon, 15 July 2013 11:54   |
Eclipse User |
|
|
|
Running your query gives output as follows:
class sun.nio.cs.StandardCharsets @ 0x77cb7a4a0,304,8200,0.03488,
class java.util.Locale @ 0x77cbff7e8,232,6968,0.02964,
"java.lang.String @ 0x77cb92bd8 \u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000a\u000b\u000c\u000d\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !""#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_...",40,2416,0.01028,
class sun.jkernel.DownloadManager @ 0x77cb42bf8,328,2296,0.00977,
Can you parse fields with double quotes around (and commas or doubled double-quotes inside) ?
Do you want to open a bug for the trailing comma or CR instead of CR LF to end each line?
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06380 seconds