Package com.helix.experiments.safepoint
Record Class SafepointReport
java.lang.Object
java.lang.Record
com.helix.experiments.safepoint.SafepointReport
public record SafepointReport(String scenarioName, double timeToReachSafepointMs, double timeAtSafepointMs, double totalPauseMs, String safepointReason)
extends Record
Report summarizing JVM safepoint latency, Time-To-Safepoint (TTSP), and pause duration.
-
Constructor Summary
ConstructorsConstructorDescriptionSafepointReport(String scenarioName, double timeToReachSafepointMs, double timeAtSafepointMs, double totalPauseMs, String safepointReason) Creates an instance of aSafepointReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesafepointReasonrecord component.Returns the value of thescenarioNamerecord component.doubleReturns the value of thetimeAtSafepointMsrecord component.doubleReturns the value of thetimeToReachSafepointMsrecord component.toString()Returns a string representation of this record class.doubleReturns the value of thetotalPauseMsrecord component.
-
Constructor Details
-
SafepointReport
public SafepointReport(String scenarioName, double timeToReachSafepointMs, double timeAtSafepointMs, double totalPauseMs, String safepointReason) Creates an instance of aSafepointReportrecord class.- Parameters:
scenarioName- the value for thescenarioNamerecord componenttimeToReachSafepointMs- the value for thetimeToReachSafepointMsrecord componenttimeAtSafepointMs- the value for thetimeAtSafepointMsrecord componenttotalPauseMs- the value for thetotalPauseMsrecord componentsafepointReason- the value for thesafepointReasonrecord component
-
-
Method Details
-
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. -
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. -
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 '=='. -
scenarioName
Returns the value of thescenarioNamerecord component.- Returns:
- the value of the
scenarioNamerecord component
-
timeToReachSafepointMs
public double timeToReachSafepointMs()Returns the value of thetimeToReachSafepointMsrecord component.- Returns:
- the value of the
timeToReachSafepointMsrecord component
-
timeAtSafepointMs
public double timeAtSafepointMs()Returns the value of thetimeAtSafepointMsrecord component.- Returns:
- the value of the
timeAtSafepointMsrecord component
-
totalPauseMs
public double totalPauseMs()Returns the value of thetotalPauseMsrecord component.- Returns:
- the value of the
totalPauseMsrecord component
-
safepointReason
Returns the value of thesafepointReasonrecord component.- Returns:
- the value of the
safepointReasonrecord component
-