Record Class SafepointAnalyzer.SafepointEvent

java.lang.Object
java.lang.Record
com.helix.profiler.gc.SafepointAnalyzer.SafepointEvent
Enclosing class:
SafepointAnalyzer

public static record SafepointAnalyzer.SafepointEvent(long timestampMs, String name, long timeSinceLastNs, long reachingSafepointNs, long atSafepointNs, long totalSafepointNs) extends Record
Record representing a single JVM safepoint event.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SafepointEvent(long timestampMs, String name, long timeSinceLastNs, long reachingSafepointNs, long atSafepointNs, long totalSafepointNs)
    Creates an instance of a SafepointEvent record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the atSafepointNs record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    double
     
    double
     
    final int
    Returns a hash code value for this object.
    Returns the value of the name record component.
    long
    Returns the value of the reachingSafepointNs record component.
    long
    Returns the value of the timeSinceLastNs record component.
    long
    Returns the value of the timestampMs record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the totalSafepointNs record component.

    Methods inherited from class java.lang.Object

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

    • SafepointEvent

      public SafepointEvent(long timestampMs, String name, long timeSinceLastNs, long reachingSafepointNs, long atSafepointNs, long totalSafepointNs)
      Creates an instance of a SafepointEvent record class.
      Parameters:
      timestampMs - the value for the timestampMs record component
      name - the value for the name record component
      timeSinceLastNs - the value for the timeSinceLastNs record component
      reachingSafepointNs - the value for the reachingSafepointNs record component
      atSafepointNs - the value for the atSafepointNs record component
      totalSafepointNs - the value for the totalSafepointNs record component
  • Method Details

    • getTotalSafepointMs

      public double getTotalSafepointMs()
    • getReachingSafepointMs

      public double getReachingSafepointMs()
    • 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 '=='.
      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.
    • timestampMs

      public long timestampMs()
      Returns the value of the timestampMs record component.
      Returns:
      the value of the timestampMs record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • timeSinceLastNs

      public long timeSinceLastNs()
      Returns the value of the timeSinceLastNs record component.
      Returns:
      the value of the timeSinceLastNs record component
    • reachingSafepointNs

      public long reachingSafepointNs()
      Returns the value of the reachingSafepointNs record component.
      Returns:
      the value of the reachingSafepointNs record component
    • atSafepointNs

      public long atSafepointNs()
      Returns the value of the atSafepointNs record component.
      Returns:
      the value of the atSafepointNs record component
    • totalSafepointNs

      public long totalSafepointNs()
      Returns the value of the totalSafepointNs record component.
      Returns:
      the value of the totalSafepointNs record component