Hi everybody!
I'm currently using JProfiler in combination with JUnit tests to collect resource consumption metrics of features in our product.
A homemade JUnit runner starts and stops the JProfiler recording and parses the recorded data. It then compares the recorded values to predefined limits and fails the test if they are exceeded.
Now I want to change this to use the flight recorder instead. I found a nice article explaining how to parse .jfr files here: Using the Flight Recorder Parsers | Marcus Hirt
Unfortunately I can't figure out how to start and stop a flight recording from a JUnit runner besides using the jcmd tool.
Can anybody help me out?
Thanks a lot
Tobias