Record Class GcHeapStat.Summary
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.GcHeapStat.Summary
- Enclosing class:
- GcHeapStat
-
Field Summary
Modifier and TypeFieldDescriptionprivate final double
The field for theallocationRateBytesPerSecond
record component.private final Duration
The field for theduration
record component.private final Duration
The field for thegcTotalDuration
record component.private final int
The field for thetotalGCs
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the value of theallocationRateBytesPerSecond
record component.duration()
Returns the value of theduration
record component.final boolean
Indicates whether some other object is "equal to" this one.float
Returns the value of thegcTotalDuration
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.int
totalGCs()
Returns the value of thetotalGCs
record component.
-
Field Details
-
duration
The field for theduration
record component. -
gcTotalDuration
The field for thegcTotalDuration
record component. -
totalGCs
private final int totalGCsThe field for thetotalGCs
record component. -
allocationRateBytesPerSecond
private final double allocationRateBytesPerSecondThe field for theallocationRateBytesPerSecond
record component.
-
-
Constructor Details
-
Summary
public Summary(Duration duration, Duration gcTotalDuration, int totalGCs, double allocationRateBytesPerSecond) Creates an instance of aSummary
record class.- Parameters:
duration
- the value for theduration
record componentgcTotalDuration
- the value for thegcTotalDuration
record componenttotalGCs
- the value for thetotalGCs
record componentallocationRateBytesPerSecond
- the value for theallocationRateBytesPerSecond
record component
-
-
Method Details
-
gcOverHead
public float gcOverHead() -
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 '=='. -
duration
Returns the value of theduration
record component.- Returns:
- the value of the
duration
record component
-
gcTotalDuration
Returns the value of thegcTotalDuration
record component.- Returns:
- the value of the
gcTotalDuration
record component
-
totalGCs
public int totalGCs()Returns the value of thetotalGCs
record component.- Returns:
- the value of the
totalGCs
record component
-
allocationRateBytesPerSecond
public double allocationRateBytesPerSecond()Returns the value of theallocationRateBytesPerSecond
record component.- Returns:
- the value of the
allocationRateBytesPerSecond
record component
-