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 fileworkloadInvocations- how many times the target method was calledchecksum- deterministic result of the measured workloadmethodTraceCount- number ofjdk.MethodTraceeventsmethodTimingCount- number ofjdk.MethodTimingeventstimedInvocations- invocation count reported by method timing eventsmethodNames- method names found in timing or tracing events
- Enclosing class:
JfrEnhancementsExamples
-
Constructor Summary
ConstructorsConstructorDescriptionJfrMethodObservation(Path recordingFile, int workloadInvocations, long checksum, int methodTraceCount, int methodTimingCount, long timedInvocations, List<String> methodNames) Creates an instance of aJfrMethodObservationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongchecksum()Returns the value of thechecksumrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themethodNamesrecord component.intReturns the value of themethodTimingCountrecord component.intReturns the value of themethodTraceCountrecord component.Returns the value of therecordingFilerecord component.longReturns the value of thetimedInvocationsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theworkloadInvocationsrecord component.
-
Constructor Details
-
JfrMethodObservation
public JfrMethodObservation(Path recordingFile, int workloadInvocations, long checksum, int methodTraceCount, int methodTimingCount, long timedInvocations, List<String> methodNames) Creates an instance of aJfrMethodObservationrecord class.- Parameters:
recordingFile- the value for therecordingFilerecord componentworkloadInvocations- the value for theworkloadInvocationsrecord componentchecksum- the value for thechecksumrecord componentmethodTraceCount- the value for themethodTraceCountrecord componentmethodTimingCount- the value for themethodTimingCountrecord componenttimedInvocations- the value for thetimedInvocationsrecord componentmethodNames- the value for themethodNamesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
recordingFile
Returns the value of therecordingFilerecord component.- Returns:
- the value of the
recordingFilerecord component
-
workloadInvocations
public int workloadInvocations()Returns the value of theworkloadInvocationsrecord component.- Returns:
- the value of the
workloadInvocationsrecord component
-
checksum
-
methodTraceCount
public int methodTraceCount()Returns the value of themethodTraceCountrecord component.- Returns:
- the value of the
methodTraceCountrecord component
-
methodTimingCount
public int methodTimingCount()Returns the value of themethodTimingCountrecord component.- Returns:
- the value of the
methodTimingCountrecord component
-
timedInvocations
public long timedInvocations()Returns the value of thetimedInvocationsrecord component.- Returns:
- the value of the
timedInvocationsrecord component
-
methodNames
Returns the value of themethodNamesrecord component.- Returns:
- the value of the
methodNamesrecord component
-