Package com.helix.profiler.gc
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
ConstructorsConstructorDescriptionSafepointEvent(long timestampMs, String name, long timeSinceLastNs, long reachingSafepointNs, long atSafepointNs, long totalSafepointNs) Creates an instance of aSafepointEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theatSafepointNsrecord component.final booleanIndicates whether some other object is "equal to" this one.doubledoublefinal inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.longReturns the value of thereachingSafepointNsrecord component.longReturns the value of thetimeSinceLastNsrecord component.longReturns the value of thetimestampMsrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalSafepointNsrecord component.
-
Constructor Details
-
SafepointEvent
public SafepointEvent(long timestampMs, String name, long timeSinceLastNs, long reachingSafepointNs, long atSafepointNs, long totalSafepointNs) Creates an instance of aSafepointEventrecord class.- Parameters:
timestampMs- the value for thetimestampMsrecord componentname- the value for thenamerecord componenttimeSinceLastNs- the value for thetimeSinceLastNsrecord componentreachingSafepointNs- the value for thereachingSafepointNsrecord componentatSafepointNs- the value for theatSafepointNsrecord componenttotalSafepointNs- the value for thetotalSafepointNsrecord component
-
-
Method Details
-
getTotalSafepointMs
public double getTotalSafepointMs() -
getReachingSafepointMs
public double getReachingSafepointMs() -
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 '=='. -
timestampMs
public long timestampMs()Returns the value of thetimestampMsrecord component.- Returns:
- the value of the
timestampMsrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
timeSinceLastNs
public long timeSinceLastNs()Returns the value of thetimeSinceLastNsrecord component.- Returns:
- the value of the
timeSinceLastNsrecord component
-
reachingSafepointNs
public long reachingSafepointNs()Returns the value of thereachingSafepointNsrecord component.- Returns:
- the value of the
reachingSafepointNsrecord component
-
atSafepointNs
public long atSafepointNs()Returns the value of theatSafepointNsrecord component.- Returns:
- the value of the
atSafepointNsrecord component
-
totalSafepointNs
public long totalSafepointNs()Returns the value of thetotalSafepointNsrecord component.- Returns:
- the value of the
totalSafepointNsrecord component
-