Integrated: 8080: Add support for enabling jfr on native images

Alex Macdonald aptmac at openjdk.org
Tue Jun 20 12:11:15 UTC 2023


On Thu, 8 Jun 2023 14:01:20 GMT, Alex Macdonald <aptmac at openjdk.org> wrote:

> This PR addresses JMC-8080 [[0]](https://bugs.openjdk.org/browse/JMC-8080), in which it would be nice to add support for enabling flight recorder on GraalVM native images.
> 
> Currently, trying to use the flight recording wizard on a connected native image ends up with an error dialog:
> ![native-image](https://github.com/openjdk/jmc/assets/10425301/a04b49db-922c-451e-89d8-0cc951e3bbda)
> 
> The proposed solution here adds checks to determine if the vm is of type Substrate VM, and check if there is a flightrecording mbean registered.
> 
> [0] https://bugs.openjdk.org/browse/JMC-8080

This pull request has now been integrated.

Changeset: 145050d3
Author:    Alex Macdonald <aptmac at openjdk.org>
URL:       https://git.openjdk.org/jmc/commit/145050d330e381be798efedac32146021900c50f
Stats:     78 lines in 6 files changed: 65 ins; 0 del; 13 mod

8080: Add support for enabling jfr on native images

Co-authored-by: Robert Toyonaga <rtoyonaga at openjdk.org>
Reviewed-by: clanger, bdutheil

-------------

PR: https://git.openjdk.org/jmc/pull/491


More information about the jmc-dev mailing list