Skip to content

Support JFR -XX:FlightRecorderOptions #7546

Closed
@roberttoyonaga

Description

@roberttoyonaga

Feature request

Add support for -XX:FlightRecorderOptions. These options allow the user to configure things like JFR repository location and stack depth at app startup at the same time when -XX:StartFlightRecording is used. Erik Gahlin's response here is a good breakdown of what can be done with -XX:FlightRecorderOptions.

Is your feature request related to a problem? Please describe.
This is a new feature request, not a problem.

Describe the solution you'd like.
We need to parse the options passed by the user and configure internal JFR appropriately. The behavior should match OpenJDK.

Describe who do you think will benefit the most.
GraalVM native image users will benefit.

Describe alternatives you've considered.
No real alternatives. This is just something that is missing.

Express whether you'd like to help contributing this feature
I can help contribute this.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions