Record Class ThreadAllocationStatisticsSample
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.sample.ThreadAllocationStatisticsSample
- Record Components:
- time-
- threadName-
- allocated-
public record ThreadAllocationStatisticsSample(Instant time, String threadName, long allocated)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/util/profiling/jfr/sample/ThreadAllocationStatisticsSample- intermediary - net/minecraft/class_6530- official - bpy- named - time- intermediary - comp_48- official - a- named - threadName- intermediary - comp_49- official - b- named - allocated- intermediary - comp_50- official - c
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final record
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionThreadAllocationStatisticsSample(Instant instant, String string, long long2) 
- 
Method SummaryModifier and TypeMethodDescriptionlongReturns the value of theallocatedrecord component.final booleanIndicates whether some other object is "equal to" this one.fromEvent(RecordedEvent event) final inthashCode()Returns a hash code value for this object.Returns the value of thethreadNamerecord component.time()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
timeThe field for thetimerecord component.
- 
threadNameThe field for thethreadNamerecord component.
- 
allocatedprivate final long allocatedThe field for theallocatedrecord component.
- 
UNKNOWN- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - UNKNOWN- Lnet/minecraft/util/profiling/jfr/sample/ThreadAllocationStatisticsSample;UNKNOWN:Ljava/lang/String;- intermediary - field_34446- Lnet/minecraft/class_6530;field_34446:Ljava/lang/String;- official - d- Lbpy;d:Ljava/lang/String;
 
 
- 
- 
Constructor Details- 
ThreadAllocationStatisticsSample
 
- 
- 
Method Details- 
fromEvent- Mappings:
- Namespace - Name - Mixin selector - named - fromEvent- Lnet/minecraft/util/profiling/jfr/sample/ThreadAllocationStatisticsSample;fromEvent(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/util/profiling/jfr/sample/ThreadAllocationStatisticsSample;- intermediary - method_38057- Lnet/minecraft/class_6530;method_38057(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_6530;- official - a- Lbpy;a(Ljdk/jfr/consumer/RecordedEvent;)Lbpy;
 
- 
toAllocationMappublic static ThreadAllocationStatisticsSample.AllocationMap toAllocationMap(List<ThreadAllocationStatisticsSample> samples) - Mappings:
- Namespace - Name - Mixin selector - named - toAllocationMap- Lnet/minecraft/util/profiling/jfr/sample/ThreadAllocationStatisticsSample;toAllocationMap(Ljava/util/List;)Lnet/minecraft/util/profiling/jfr/sample/ThreadAllocationStatisticsSample$AllocationMap;- intermediary - method_38055- Lnet/minecraft/class_6530;method_38055(Ljava/util/List;)Lnet/minecraft/class_6530$class_6531;- official - a- Lbpy;a(Ljava/util/List;)Lbpy$a;
 
- 
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
 
- 
threadNameReturns the value of thethreadNamerecord component.- Returns:
- the value of the threadNamerecord component
 
- 
allocatedpublic long allocated()Returns the value of theallocatedrecord component.- Returns:
- the value of the allocatedrecord component
 
 
-