proper usage of -XX:+PrintIdeal

Manohar Jonnalagedda manojo10386 at gmail.com
Thu Nov 24 08:57:19 PST 2011


Hello all,

I am new to using the debug features of hotspot (probably posting to the
wrong list, as I haven't seen any list targetted to hotspot users), and was
interested in checking out the graph of a program that I wrote. The program
contains a method 'methodA' which I would like to inspect in terms of
optimizations performed. I verified using the PrintCompilation (and
PrintAssembly) flag that it was indeed JIT compiled.

When I use the PrintIdeal flags, however, my output xml files do not
contain any mention of this method. Here is the command I use :

$JAVA_HOME/bin/java -verbose:gc -server -d64 -XX:+UseCompressedOops
-XX:+DoEscapeAnalysis -XX:PrintIdealGraphLevel=1
-XX:PrintIdealGraphFile="file.xml" -XX:+PrintIdeal $JAVA_OPTS "$@"

Would the problem be due to not using the flags properly?

Thanks a lot for your help,
Manohar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-dev/attachments/20111124/d05bf364/attachment.html 


More information about the hotspot-dev mailing list