Record Class GcHeapSummarySample.Statistics
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.sample.GcHeapSummarySample.Statistics
- Record Components:
duration-gcDuration-count-allocatedBytesPerSecond-
- Enclosing class:
GcHeapSummarySample
public static record GcHeapSummarySample.Statistics(Duration duration, Duration gcDuration, int count, double allocatedBytesPerSecond)
extends Record
- Mappings:
Namespace Name named net/minecraft/util/profiling/jfr/sample/GcHeapSummarySample$Statisticsintermediary net/minecraft/class_6525$class_6526official bod$anamed durationintermediary comp_37official anamed gcDurationintermediary comp_38official bnamed countintermediary comp_39official cnamed allocatedBytesPerSecondintermediary comp_40official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleThe field for theallocatedBytesPerSecondrecord component.private final intThe field for thecountrecord component.private final DurationThe field for thedurationrecord component.private final DurationThe field for thegcDurationrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theallocatedBytesPerSecondrecord component.intcount()Returns the value of thecountrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegcDurationrecord component.floatfinal inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
duration
The field for thedurationrecord component. -
gcDuration
The field for thegcDurationrecord component. -
count
private final int countThe field for thecountrecord component. -
allocatedBytesPerSecond
private final double allocatedBytesPerSecondThe field for theallocatedBytesPerSecondrecord component.
-
-
Constructor Details
-
Statistics
-
-
Method Details
-
getGcDurationRatio
public float getGcDurationRatio()- Mappings:
Namespace Name Mixin selector named getGcDurationRatioLnet/minecraft/util/profiling/jfr/sample/GcHeapSummarySample$Statistics;getGcDurationRatio()Fintermediary method_38043Lnet/minecraft/class_6525$class_6526;method_38043()Fofficial aLbod$a;a()F
-
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
-
gcDuration
Returns the value of thegcDurationrecord component.- Returns:
- the value of the
gcDurationrecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
allocatedBytesPerSecond
public double allocatedBytesPerSecond()Returns the value of theallocatedBytesPerSecondrecord component.- Returns:
- the value of the
allocatedBytesPerSecondrecord component
-