-
Notifications
You must be signed in to change notification settings - Fork 937
Closed
Labels
Description
Background
Currently --jfrsync option accepts either a predefined JFR profile (default, profile) or a path to .jfc configuration file. In some use cases, it is desired to add just one or two specific JFR events in addition to async-profiler collected data. To do this, user needs to create a new .jfc file and pass its name in jfrsync option. This not very convenient, especially when the target application runs in a container.
Proposal
Allow --jfrsync option to accept an explicit list of enabled JFR events.
To distinguish from a file name, the list starts with + sign. Multiple events are also separated by + (cannot use , since it demarcates different options).
Example: --jfrsync +jdk.YoungGarbageCollection+jdk.OldGarbageCollection