RFR: 8284686: Interval of < 1 ms disables ExecutionSample events [v3]
Johannes Bechberger
duke at openjdk.java.net
Thu Apr 28 12:12:41 UTC 2022
On Wed, 13 Apr 2022 13:40:37 GMT, Johannes Bechberger <duke at openjdk.java.net> wrote:
>> Fixes the issue by rounding the period interval to the next full millisecond larger than zero.
>>
>> The following from the bug report works now:
>>
>> java -XX:StartFlightRecording=filename=flight.jfr,jdk.ExecutionSample#period=999us CLASS_FILE; jfr print --events jdk.ExecutionSample flight.jfr
>>
>> It considers the period to be `1ms`, producing the recording as expected.
>
> Johannes Bechberger has updated the pull request incrementally with one additional commit since the last revision:
>
> Try to add small test case
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?
-------------
PR: https://git.openjdk.java.net/jdk/pull/8183
More information about the hotspot-jfr-dev
mailing list