AdoptOpenJDK / jitwatch

Log analyser / visualiser for Java HotSpot JIT compiler. Inspect inlining decisions, hot methods, bytecode, and assembly. View results in the JavaFX user interface.
Other
3.04k stars 435 forks source link

Add JMH in Sandbox #378

Open Thihup opened 8 months ago

Thihup commented 8 months ago

Would it be possible to somehow add JMH in the Sandbox window?

It would help to do microbench more correctly than using a hot loop.

chriswhocodes commented 8 months ago

Hi @Thihup I think it's possible but I can't comment on what interactions running JMH from within JITWatch might have on the results. I suppose if it's only for sandbox-type experiments it might be OK.

For less chance of side effects, I'd recommend running JMH with -XX:+LogCompilation on the command line and then loading the resulting log file into JITWatch which is something I do often and works fine.