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 official bel$a
intermediary net/minecraft/class_6525$class_6526
named net/minecraft/util/profiling/jfr/sample/GcHeapSummarySample$Statistics
official a
intermediary comp_37
named duration
official b
intermediary comp_38
named gcDuration
official c
intermediary comp_39
named count
official d
intermediary comp_40
named allocatedBytesPerSecond
-
Field Summary
Modifier and TypeFieldDescriptionprivate final double
The field for theallocatedBytesPerSecond
record component.private final int
The field for thecount
record component.private final Duration
The field for theduration
record component.private final Duration
The field for thegcDuration
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the value of theallocatedBytesPerSecond
record component.int
count()
Returns the value of thecount
record component.duration()
Returns the value of theduration
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegcDuration
record component.float
final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
duration
The field for theduration
record component. -
gcDuration
The field for thegcDuration
record component. -
count
private final int countThe field for thecount
record component. -
allocatedBytesPerSecond
private final double allocatedBytesPerSecondThe field for theallocatedBytesPerSecond
record component.
-
-
Constructor Details
-
Statistics
-
-
Method Details
-
getGcDurationRatio
public float getGcDurationRatio()- Mappings:
Namespace Name Mixin selector official a
Lbel$a;a()F
intermediary method_38043
Lnet/minecraft/class_6525$class_6526;method_38043()F
named getGcDurationRatio
Lnet/minecraft/util/profiling/jfr/sample/GcHeapSummarySample$Statistics;getGcDurationRatio()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 theduration
record component.- Returns:
- the value of the
duration
record component
-
gcDuration
Returns the value of thegcDuration
record component.- Returns:
- the value of the
gcDuration
record component
-
count
public int count()Returns the value of thecount
record component.- Returns:
- the value of the
count
record component
-
allocatedBytesPerSecond
public double allocatedBytesPerSecond()Returns the value of theallocatedBytesPerSecond
record component.- Returns:
- the value of the
allocatedBytesPerSecond
record component
-