There is no simple way for users to find out all available events in the JDK. This is typically needed if you want to use the JFR API to consume or configure events.
The 'jfr' tool can print event metadata (i.e field layout) for a recording, and you can use that to get a list of the events, but it's cumbersome and unintuitive:
$ java -XX:StartFlightRecording:filename=recording.jfr -version
$ jfr metadata recording.jfr
$ del recording.jfr
It would much easier if users could do:
$ jfr metadata
Today there are about 150 events and it would helpful if metadata could be filtered similar to the 'jfr print' command to limit the output
$ jfr metadata --events jdk.GarbageCollection
$ jfr metadata --catagories GC
The 'jfr' tool can print event metadata (i.e field layout) for a recording, and you can use that to get a list of the events, but it's cumbersome and unintuitive:
$ java -XX:StartFlightRecording:filename=recording.jfr -version
$ jfr metadata recording.jfr
$ del recording.jfr
It would much easier if users could do:
$ jfr metadata
Today there are about 150 events and it would helpful if metadata could be filtered similar to the 'jfr print' command to limit the output
$ jfr metadata --events jdk.GarbageCollection
$ jfr metadata --catagories GC
- csr for
-
JDK-8259479 JFR: Allow 'jfr' tool to show metadata without a recording
-
- Closed
-