JFR Maven Extension ![Maven Central](https://camo.githubusercontent.com/3bc41ced2759f80c88f83b13c012ec55e1c44d23ca337dce027d9718b59c9eff/68747470733a2f2f6d6176656e2d6261646765732e6865726f6b756170702e636f6d2f6d6176656e2d63656e7472616c2f636f6d2e6769746875622e6d6172736368616c6c2f6a66722d6d6176656e2d657874656e73696f6e2f62616467652e737667)
This Maven extension generates JFR events for a Maven build.
Usage
<build>
<extensions>
<extension>
<groupId>com.github.marschall</groupId>
<artifactId>jfr-maven-extension</artifactId>
<version>0.1.1</version>
</extension>
</extensions>
</build>
To create a recording you need the following or similar options
export MAVEN_OPTS="-XX:StartFlightRecording:filename=recording.jfr -XX:FlightRecorderOptions:stackdepth=256"
If you want to have the unit test execution in the same recording you need to set
<forkCount>0</forkCount>
in the configuration of the maven-surefire-plugin