Filtering the output of -XX:+PrintAssembly

Dennis Byrne dennisbyrne at
Tue Nov 17 08:24:29 PST 2009

The final paragraph of the hsdis README file [1] and second to last
paragraph of the wiki page [2] suggests that the following command
line only prints the assembly for the main method of my HelloWorld

-XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly
-XX:PrintAssemblyOptions=hsdis-print-bytes -Xbatch
-XX:CompileCommand=print,*HelloWorld.main HelloWorld

However when I run this method, I get ~2000 lines of assembly.  How do
I filter for just the single main method?


Any help would be greatly appreciated, thank you in advance.

Dennis Byrne

More information about the hotspot-dev mailing list