thanks for accepting me into the forum. JITWatch looks very promising as a tool to learn about intricacies of Java JIT. Unfortunately, I am not able to use it to its full potential as I don't know how to generate assembly code that can be picked up by JITWatch. This is the same question that I have already asked on StackOverflow (
https://stackoverflow.com/questions/43066522/jitwatch-assembly-code-generation) and my problem is as follows:
However, JITWatch does not seem to see my assembly code and prints the following message in its windows:
Assembly not found. Was -XX:+PrintAssembly option used?
I am using Oracle's JRE 1.8.0_121 on Windows 10 Home. I've added dissembly dll's to my JRE. The dll's were downloaded from FCML project. I can confirm that assembly is generated when I run program with java -XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly test.Test options.
I've configured JITWatch paths so that *.java and *.class files are visible to it. For JITWatch analysis I run my Java program with java -XX:+UnlockDiagnosticVMOptions -XX:+TraceClassLoading -XX:+LogCompilation -XX:+PrintAssembly test.Test and open the generated .log file with JITWatch. It can see the Java code and bytecode, but not the assembly. I suspect the problem is caused by the fact that assembly is printed to standard output (to the console) and not to log file. Is there an option I am missing?
Thanks for your answer.