RFR: 7992: Add API to easily write annotated Java JFR events [v4]

Marcus Hirt hirt at openjdk.org
Thu Jul 11 15:27:04 UTC 2024


On Wed, 10 Jul 2024 20:26:34 GMT, Jaroslav Bachorik <jbachorik at openjdk.org> wrote:

>> This PR extends the JFR Writer API with the ability to use the custom JFR event types (eg. classes extending `jdk.jfr.Event`) and register new writer type for them and also directly accept the instances of those types to write them in the recording.
>
> Jaroslav Bachorik has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains ten additional commits since the last revision:
> 
>  - Replace commented out println with logger
>  - Merge remote-tracking branch 'upstream/master' into jb/JMC-7992
>  - Add unit tests for using custom events directly in the writer API
>  - Improve handling of the overriden internal fields
>  - Merge branch 'master' into jb/JMC-7992
>  - Add more explanatory comments
>  - Add javadoc for the new public methods
>  - Update copyright year
>  - JMC-7992: Add API to easily write annotated Java JFR events

Marked as reviewed by hirt (Lead).

-------------

PR Review: https://git.openjdk.org/jmc/pull/457#pullrequestreview-2172283719


More information about the jmc-dev mailing list