Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8256156

JFR: Allow 'jfr' tool to show metadata without a recording

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 17
    • 16
    • hotspot
    • None
    • jfr
    • b14

      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




            yyang Yi Yang
            egahlin Erik Gahlin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: