Record Class GcHeapStat
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.GcHeapStat
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record(package private) static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for theheapUsedrecord component.private final InstantThe field for thetimestamprecord component.private final GcHeapStat.TimingThe field for thetimingrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGcHeapStat(Instant timestamp, long heapUsed, GcHeapStat.Timing timing) Creates an instance of aGcHeapStatrecord class. -
Method Summary
Modifier 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
-
timestamp
The field for thetimestamprecord component. -
heapUsed
private final long heapUsedThe field for theheapUsedrecord component. -
timing
The field for thetimingrecord component.
-
-
Constructor Details
-
GcHeapStat
Creates an instance of aGcHeapStatrecord class.- Parameters:
timestamp- the value for thetimestamprecord componentheapUsed- the value for theheapUsedrecord componenttiming- the value for thetimingrecord component
-
-
Method Details
-
from
-
summary
public static GcHeapStat.Summary summary(Duration p_185691_, List<GcHeapStat> p_185692_, Duration p_185693_, int p_185694_) -
calculateAllocationRatePerSecond
-
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 '=='. -
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
heapUsed
public long heapUsed()Returns the value of theheapUsedrecord component.- Returns:
- the value of the
heapUsedrecord component
-
timing
Returns the value of thetimingrecord component.- Returns:
- the value of the
timingrecord component
-