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 - named - net/minecraft/util/profiling/jfr/sample/GcHeapSummarySample- intermediary - net/minecraft/class_6525- official - bpu- named - time- intermediary - comp_34- official - a- named - heapUsed- intermediary - comp_35- official - b- named - summaryType- intermediary - comp_36- official - c
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final record(package private) static enum
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final longThe field for theheapUsedrecord component.private final GcHeapSummarySample.SummaryTypeThe field for thesummaryTyperecord component.private final InstantThe field for thetimerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionGcHeapSummarySample(Instant instant, long long2, GcHeapSummarySample.SummaryType summaryType) 
- 
Method SummaryModifier 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- 
timeThe field for thetimerecord component.
- 
heapUsedprivate final long heapUsedThe field for theheapUsedrecord component.
- 
summaryTypeThe field for thesummaryTyperecord component.
 
- 
- 
Constructor Details- 
GcHeapSummarySamplepublic GcHeapSummarySample(Instant instant, long long2, GcHeapSummarySample.SummaryType summaryType) 
 
- 
- 
Method Details- 
fromEvent- Mappings:
- Namespace - Name - Mixin selector - named - fromEvent- Lnet/minecraft/util/profiling/jfr/sample/GcHeapSummarySample;fromEvent(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/util/profiling/jfr/sample/GcHeapSummarySample;- intermediary - method_38042- Lnet/minecraft/class_6525;method_38042(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_6525;- official - a- Lbpu;a(Ljdk/jfr/consumer/RecordedEvent;)Lbpu;
 
- 
toStatisticspublic static GcHeapSummarySample.Statistics toStatistics(Duration duration, List<GcHeapSummarySample> samples, Duration gcDuration, int count) - Mappings:
- Namespace - Name - Mixin selector - 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;- 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;- official - a- Lbpu;a(Ljava/time/Duration;Ljava/util/List;Ljava/time/Duration;I)Lbpu$a;
 
- 
getAllocatedBytesPerSecond- Mappings:
- Namespace - Name - Mixin selector - named - getAllocatedBytesPerSecond- Lnet/minecraft/util/profiling/jfr/sample/GcHeapSummarySample;getAllocatedBytesPerSecond(Ljava/util/List;)D- intermediary - method_38041- Lnet/minecraft/class_6525;method_38041(Ljava/util/List;)D- official - a- Lbpu;a(Ljava/util/List;)D
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
timeReturns the value of thetimerecord component.- Returns:
- the value of the timerecord component
 
- 
heapUsedpublic long heapUsed()Returns the value of theheapUsedrecord component.- Returns:
- the value of the heapUsedrecord component
 
- 
summaryTypeReturns the value of thesummaryTyperecord component.- Returns:
- the value of the summaryTyperecord component
 
 
-