Record Class GcHeapStat.Summary
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.GcHeapStat.Summary
- Enclosing class:
- GcHeapStat
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleThe field for theallocationRateBytesPerSecondrecord component.private final DurationThe field for thedurationrecord component.private final DurationThe field for thegcTotalDurationrecord component.private final intThe field for thetotalGCsrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theallocationRateBytesPerSecondrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.floatReturns the value of thegcTotalDurationrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.inttotalGCs()Returns the value of thetotalGCsrecord component.
-
Field Details
-
duration
The field for thedurationrecord component. -
gcTotalDuration
The field for thegcTotalDurationrecord component. -
totalGCs
private final int totalGCsThe field for thetotalGCsrecord component. -
allocationRateBytesPerSecond
private final double allocationRateBytesPerSecondThe field for theallocationRateBytesPerSecondrecord component.
-
-
Constructor Details
-
Summary
public Summary(Duration duration, Duration gcTotalDuration, int totalGCs, double allocationRateBytesPerSecond) Creates an instance of aSummaryrecord class.- Parameters:
duration- the value for thedurationrecord componentgcTotalDuration- the value for thegcTotalDurationrecord componenttotalGCs- the value for thetotalGCsrecord componentallocationRateBytesPerSecond- the value for theallocationRateBytesPerSecondrecord 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 thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
gcTotalDuration
Returns the value of thegcTotalDurationrecord component.- Returns:
- the value of the
gcTotalDurationrecord component
-
totalGCs
public int totalGCs()Returns the value of thetotalGCsrecord component.- Returns:
- the value of the
totalGCsrecord component
-
allocationRateBytesPerSecond
public double allocationRateBytesPerSecond()Returns the value of theallocationRateBytesPerSecondrecord component.- Returns:
- the value of the
allocationRateBytesPerSecondrecord component
-