Record Class GcHeapStat
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.GcHeapStat
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final record(package private) static enum
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final longThe field for theheapUsedrecord component.private final InstantThe field for thetimestamprecord component.private final GcHeapStat.TimingThe field for thetimingrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionGcHeapStat(Instant timestamp, long heapUsed, GcHeapStat.Timing timing) Creates an instance of aGcHeapStatrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionprivate static doublecalculateAllocationRatePerSecond(List<GcHeapStat> p_185696_) final booleanIndicates whether some other object is "equal to" this one.static GcHeapStatfrom(RecordedEvent p_185698_) final inthashCode()Returns a hash code value for this object.longheapUsed()Returns the value of theheapUsedrecord component.static GcHeapStat.Summarysummary(Duration p_185691_, List<GcHeapStat> p_185692_, Duration p_185693_, int p_185694_) Returns the value of thetimestamprecord component.timing()Returns the value of thetimingrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
timestampThe field for thetimestamprecord component.
- 
heapUsedprivate final long heapUsedThe field for theheapUsedrecord component.
- 
timingThe field for thetimingrecord component.
 
- 
- 
Constructor Details- 
GcHeapStatCreates an instance of aGcHeapStatrecord class.- Parameters:
- timestamp- the value for the- timestamprecord component
- heapUsed- the value for the- heapUsedrecord component
- timing- the value for the- timingrecord component
 
 
- 
- 
Method Details- 
from
- 
summarypublic static GcHeapStat.Summary summary(Duration p_185691_, List<GcHeapStat> p_185692_, Duration p_185693_, int p_185694_) 
- 
calculateAllocationRatePerSecond
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
timestampReturns the value of thetimestamprecord component.- Returns:
- the value of the timestamprecord component
 
- 
heapUsedpublic long heapUsed()Returns the value of theheapUsedrecord component.- Returns:
- the value of the heapUsedrecord component
 
- 
timingReturns the value of thetimingrecord component.- Returns:
- the value of the timingrecord component
 
 
-