Skip to content
marcovzla edited this page Sep 30, 2016 · 2 revisions

We can use flight recorder to profile Reach.

https://docs.oracle.com/javacomponents/jmc-5-4/jfr-runtime-guide/run.htm#JFRUH164

In order to do so, we can add this to .sbtopts:

-J-XX:+UnlockCommercialFeatures
-J-XX:+FlightRecorder
-J-XX:FlightRecorderOptions=defaultrecording=true,dumponexit=true

The recording will be saved to a file in the current directory. You can specify other locations by using the dumponexitpath =path option. If path is a directory, the file will be saved there. If path is a filename, that filename will be used.