Pluggable profilers for JMH that are discovered through SPI (for JMH >= 1.8) when the profiler is present in the classpath.
- JFR Profiler: starts automatically Java Flight Recorder
and produces a .jfr file for each benchmark. Each file can be browsed afterwards
via
Java Mission Control.
This profiler can be considered by JMH as
supported
only if the user wants to explicitly enable the commercial features.
where in the version field you can use the latest one
<dependency>
<groupId>com.github.biboudis</groupId>
<artifactId>jmh-profilers</artifactId>
<version>0.1.4</version>
</dependency>
libraryDependencies ++= Seq("com.github.biboudis" % "jmh-profilers" % "0.1.2")
Check if your profiler is discovered through the -lprof
JMH option. This
would append in the list of supported or unsupported profilers an entry of the
following format:
<label>: <description>. (discovered)
Sending PRs with improvements, additions with new profilers and opening issues is highly encouraged.