RFR: 8284686: Interval of < 1 ms disables ExecutionSample events [v3]
Erik Gahlin
egahlin at openjdk.java.net
Thu Apr 28 12:46:54 UTC 2022
On Thu, 28 Apr 2022 12:08:58 GMT, Johannes Bechberger <duke at openjdk.java.net> wrote:
> But where do you test it? Or more generally: How can I write a test that runs JFR? Should this test run a small loop 100ms and then check that there are > 0 events recorded?
The test code above will run JFR until an event is emitted (RecordingStream::start() is blocking)
If there is a bug, the test will hang with a stack trace indicating which test method that failed.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8183
More information about the hotspot-jfr-dev
mailing list