Hibernate JFR
A Hiberante listener that generates JFR events.
Usage
The project uses a Hibernate integrator so simply adding the dependency
<dependency>
<groupId>com.github.marschall</groupId>
<artifactId>hibernate-jfr</artifactId>
<version>0.3.0</version>
</dependency>
And set the hibernate.session_factory.statement_inspector
propert to com.github.marschall.hibernate.jfr.JfrStatementInspector
for example using
<property name="hibernate.session_factory.statement_inspector" value="com.github.marschall.hibernate.jfr.JfrStatementInspector" />
You can generate a flight recording using something like this
-XX:StartFlightRecording:filename=recording.jfr
-XX:FlightRecorderOptions:stackdepth=256