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

    Constructors
    Constructor
    Description
    SafepointReport(String scenarioName, double timeToReachSafepointMs, double timeAtSafepointMs, double totalPauseMs, String safepointReason)
    Creates an instance of a SafepointReport record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the safepointReason record component.
    Returns the value of the scenarioName record component.
    double
    Returns the value of the timeAtSafepointMs record component.
    double
    Returns the value of the timeToReachSafepointMs record component.
    Returns a string representation of this record class.
    double
    Returns the value of the totalPauseMs record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SafepointReport

      public SafepointReport(String scenarioName, double timeToReachSafepointMs, double timeAtSafepointMs, double totalPauseMs, String safepointReason)
      Creates an instance of a SafepointReport record class.
      Parameters:
      scenarioName - the value for the scenarioName record component
      timeToReachSafepointMs - the value for the timeToReachSafepointMs record component
      timeAtSafepointMs - the value for the timeAtSafepointMs record component
      totalPauseMs - the value for the totalPauseMs record component
      safepointReason - the value for the safepointReason record component
  • Method Details

    • toString

      public 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 '=='.
      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.
    • scenarioName

      public String scenarioName()
      Returns the value of the scenarioName record component.
      Returns:
      the value of the scenarioName record component
    • timeToReachSafepointMs

      public double timeToReachSafepointMs()
      Returns the value of the timeToReachSafepointMs record component.
      Returns:
      the value of the timeToReachSafepointMs record component
    • timeAtSafepointMs

      public double timeAtSafepointMs()
      Returns the value of the timeAtSafepointMs record component.
      Returns:
      the value of the timeAtSafepointMs record component
    • totalPauseMs

      public double totalPauseMs()
      Returns the value of the totalPauseMs record component.
      Returns:
      the value of the totalPauseMs record component
    • safepointReason

      public String safepointReason()
      Returns the value of the safepointReason record component.
      Returns:
      the value of the safepointReason record component