Record Class JfrEnhancementsExamples.JfrMethodObservation

java.lang.Object
java.lang.Record
net.jrodolfo.java_evolution.java25.jfr_enhancements.JfrEnhancementsExamples.JfrMethodObservation
Record Components:
recordingFile - the generated recording file
workloadInvocations - how many times the target method was called
checksum - deterministic result of the measured workload
methodTraceCount - number of jdk.MethodTrace events
methodTimingCount - number of jdk.MethodTiming events
timedInvocations - invocation count reported by method timing events
methodNames - method names found in timing or tracing events
Enclosing class:
JfrEnhancementsExamples

public static record JfrEnhancementsExamples.JfrMethodObservation(Path recordingFile, int workloadInvocations, long checksum, int methodTraceCount, int methodTimingCount, long timedInvocations, List<String> methodNames) extends Record
Summary of method events observed in a JFR recording.
  • Constructor Details

    • JfrMethodObservation

      public JfrMethodObservation(Path recordingFile, int workloadInvocations, long checksum, int methodTraceCount, int methodTimingCount, long timedInvocations, List<String> methodNames)
      Creates an instance of a JfrMethodObservation record class.
      Parameters:
      recordingFile - the value for the recordingFile record component
      workloadInvocations - the value for the workloadInvocations record component
      checksum - the value for the checksum record component
      methodTraceCount - the value for the methodTraceCount record component
      methodTimingCount - the value for the methodTimingCount record component
      timedInvocations - the value for the timedInvocations record component
      methodNames - the value for the methodNames record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • recordingFile

      public Path recordingFile()
      Returns the value of the recordingFile record component.
      Returns:
      the value of the recordingFile record component
    • workloadInvocations

      public int workloadInvocations()
      Returns the value of the workloadInvocations record component.
      Returns:
      the value of the workloadInvocations record component
    • checksum

      public long checksum()
      Returns the value of the checksum record component.
      Returns:
      the value of the checksum record component
    • methodTraceCount

      public int methodTraceCount()
      Returns the value of the methodTraceCount record component.
      Returns:
      the value of the methodTraceCount record component
    • methodTimingCount

      public int methodTimingCount()
      Returns the value of the methodTimingCount record component.
      Returns:
      the value of the methodTimingCount record component
    • timedInvocations

      public long timedInvocations()
      Returns the value of the timedInvocations record component.
      Returns:
      the value of the timedInvocations record component
    • methodNames

      public List<String> methodNames()
      Returns the value of the methodNames record component.
      Returns:
      the value of the methodNames record component