Skip to Main Content

Java HotSpot Virtual Machine

Announcement

Testing banner

Modify "annotations" of JFR events at runtime

user4836572Jun 19 2021

Hello,
usually JFR events are defined statically via annotations.
It is also possible to create events fully dynamically at runtime if their structure is not known beforehand.
But is there a way to modify statically defined events by just setting a different Category, Label or Description? I mean, I have events that have all the same structure. I do know that structure beforehand. But the name of the event and the category they should reside in is only determined at runtime.
Having to fully dynamically create those events at runtime seems like overkill to me.

Comments
Post Details
Added on Jun 19 2021
0 comments
47 views