Use JDK Flight Recorder (JFR) with Native Image
(Doc ID 2798737.1)
Last updated on AUGUST 13, 2021
Applies to:Oracle GraalVM Enterprise Edition - Version Oracle GraalVM Enterprise Edition 20.3 to Oracle GraalVM Enterprise Edition 21.2.0 [Release GR20 to GR21]
Information in this document applies to any platform.
JDK Flight Recorder (JFR) is a production-time profiling system that is now supported by GraalVM Native Image.
Basically, native images that are built with -H:+AllowVMInspection support JFR events written in Java, and users can continue to make use of the
jdk.jfr.Event API and JFR itself, with a similar experience to using JFR in the Java HotSpot VM. However, to record JFR events at run time, JFR support and JFR recording must be enabled, and this page covers how to start using JFR with native images.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document
|Build and Run Native Images with JFR|
|Configure the Recording|
|Configure JFR System Logging|