This parser finds stacktraces in jfr files that were generated by Flight Recorder 6.
It also works for Flight Recorder 5 recordings.
FlightParser flightParser = new FlightParser(new File("my_recording.jfr"));
/* in following map:
* keys are stacktraces where method calls are separated by ';'
* values are numbers that tell how many times this stacktrace was found in the recording
*/
Map<String, Integer> stacks = flightParser.getStacksMap();
./gradlew jar
# for Windows:
gradlew.bat