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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 17
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      jfr
    • Resolved In Build:
      b14

      Description

      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




        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: