Skip to content

a Maven extension generates JFR events for a Maven build

Notifications You must be signed in to change notification settings

marschall/jfr-maven-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JFR Maven Extension Maven Central

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

Screenshot

Sample Screenshot

About

a Maven extension generates JFR events for a Maven build

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages