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 bbiintermediary net/minecraft/class_6525named net/minecraft/util/profiling/jfr/sample/GcHeapSummarySampleofficial aintermediary comp_34named timeofficial bintermediary comp_35named heapUsedofficial cintermediary comp_36named summaryType
-
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 GcHeapSummarySample.SummaryTypeThe field for thesummaryTyperecord component.private final InstantThe field for thetimerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGcHeapSummarySample(Instant instant, long long2, GcHeapSummarySample.SummaryType summaryType) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static GcHeapSummarySamplefromEvent(RecordedEvent event) private static doublefinal inthashCode()Returns a hash code value for this object.longheapUsed()Returns the value of theheapUsedrecord component.Returns the value of thesummaryTyperecord component.time()Returns the value of thetimerecord component.toStatistics(Duration duration, List<GcHeapSummarySample> samples, Duration gcDuration, int count) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
time
The field for thetimerecord component. -
heapUsed
private final long heapUsedThe field for theheapUsedrecord component. -
summaryType
The field for thesummaryTyperecord component.
-
-
Constructor Details
-
GcHeapSummarySample
public GcHeapSummarySample(Instant instant, long long2, GcHeapSummarySample.SummaryType summaryType)
-
-
Method Details
-
fromEvent
- Mappings:
Namespace Name Mixin selector official aLbbi;a(Ljdk/jfr/consumer/RecordedEvent;)Lbbi;intermediary method_38042Lnet/minecraft/class_6525;method_38042(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_6525;named fromEventLnet/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 aLbbi;a(Ljava/time/Duration;Ljava/util/List;Ljava/time/Duration;I)Lbbi$a;intermediary method_38040Lnet/minecraft/class_6525;method_38040(Ljava/time/Duration;Ljava/util/List;Ljava/time/Duration;I)Lnet/minecraft/class_6525$class_6526;named toStatisticsLnet/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 aLbbi;a(Ljava/util/List;)Dintermediary method_38041Lnet/minecraft/class_6525;method_38041(Ljava/util/List;)Dnamed getAllocatedBytesPerSecondLnet/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 thetimerecord component.- Returns:
- the value of the
timerecord component
-
heapUsed
public long heapUsed()Returns the value of theheapUsedrecord component.- Returns:
- the value of the
heapUsedrecord component
-
summaryType
Returns the value of thesummaryTyperecord component.- Returns:
- the value of the
summaryTyperecord component
-