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

Alex Macdonald aptmac at openjdk.org
Mon Jun 24 18:04:19 UTC 2024


On Thu, 14 Mar 2024 11:06:15 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 five additional commits since the last revision:
> 
>  - 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

core/org.openjdk.jmc.flightrecorder.writer/src/main/java/org/openjdk/jmc/flightrecorder/writer/RecordingImpl.java line 481:

> 479: 					}
> 480: 					default: {
> 481: 						//System.err.println("Cannot write type:" + f.getType().getName());

Commented out println

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

PR Review Comment: https://git.openjdk.org/jmc/pull/457#discussion_r1525001949


More information about the jmc-dev mailing list