KEMBAR78
Explicitly specify a list of JFR events for jfrsync mode · Issue #750 · async-profiler/async-profiler · GitHub
Skip to content

Explicitly specify a list of JFR events for jfrsync mode #750

@apangin

Description

@apangin

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions