Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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
295 views