Record Class GcHeapSummarySample
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.sample.GcHeapSummarySample
- Record Components:
time
-heapUsed
-summaryType
-
public record GcHeapSummarySample(Instant time, long heapUsed, GcHeapSummarySample.SummaryType summaryType)
extends Record
- Mappings:
Namespace Name official bbg
intermediary net/minecraft/class_6525
named net/minecraft/util/profiling/jfr/sample/GcHeapSummarySample
official a
intermediary comp_34
named time
official b
intermediary comp_35
named heapUsed
official c
intermediary comp_36
named summaryType
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
(package private) static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate final long
The field for theheapUsed
record component.private final GcHeapSummarySample.SummaryType
The field for thesummaryType
record component.private final Instant
The field for thetime
record component. -
Constructor Summary
ConstructorDescriptionGcHeapSummarySample
(Instant instant, long long2, GcHeapSummarySample.SummaryType summaryType) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.static GcHeapSummarySample
fromEvent
(RecordedEvent event) private static double
final int
hashCode()
Returns a hash code value for this object.long
heapUsed()
Returns the value of theheapUsed
record component.Returns the value of thesummaryType
record component.time()
Returns the value of thetime
record component.toStatistics
(Duration duration, List<GcHeapSummarySample> samples, Duration gcDuration, int count) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
time
The field for thetime
record component. -
heapUsed
private final long heapUsedThe field for theheapUsed
record component. -
summaryType
The field for thesummaryType
record component.
-
-
Constructor Details
-
GcHeapSummarySample
public GcHeapSummarySample(Instant instant, long long2, GcHeapSummarySample.SummaryType summaryType)
-
-
Method Details
-
fromEvent
- Mappings:
Namespace Name Mixin selector official a
Lbbg;a(Ljdk/jfr/consumer/RecordedEvent;)Lbbg;
intermediary method_38042
Lnet/minecraft/class_6525;method_38042(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_6525;
named fromEvent
Lnet/minecraft/util/profiling/jfr/sample/GcHeapSummarySample;fromEvent(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/util/profiling/jfr/sample/GcHeapSummarySample;
-
toStatistics
public static GcHeapSummarySample.Statistics toStatistics(Duration duration, List<GcHeapSummarySample> samples, Duration gcDuration, int count) - Mappings:
Namespace Name Mixin selector official a
Lbbg;a(Ljava/time/Duration;Ljava/util/List;Ljava/time/Duration;I)Lbbg$a;
intermediary method_38040
Lnet/minecraft/class_6525;method_38040(Ljava/time/Duration;Ljava/util/List;Ljava/time/Duration;I)Lnet/minecraft/class_6525$class_6526;
named toStatistics
Lnet/minecraft/util/profiling/jfr/sample/GcHeapSummarySample;toStatistics(Ljava/time/Duration;Ljava/util/List;Ljava/time/Duration;I)Lnet/minecraft/util/profiling/jfr/sample/GcHeapSummarySample$Statistics;
-
getAllocatedBytesPerSecond
- Mappings:
Namespace Name Mixin selector official a
Lbbg;a(Ljava/util/List;)D
intermediary method_38041
Lnet/minecraft/class_6525;method_38041(Ljava/util/List;)D
named getAllocatedBytesPerSecond
Lnet/minecraft/util/profiling/jfr/sample/GcHeapSummarySample;getAllocatedBytesPerSecond(Ljava/util/List;)D
-
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 '=='. -
time
Returns the value of thetime
record component.- Returns:
- the value of the
time
record component
-
heapUsed
public long heapUsed()Returns the value of theheapUsed
record component.- Returns:
- the value of the
heapUsed
record component
-
summaryType
Returns the value of thesummaryType
record component.- Returns:
- the value of the
summaryType
record component
-