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 official ben
intermediary net/minecraft/class_6530
named net/minecraft/util/profiling/jfr/sample/ThreadAllocationStatisticsSample
official a
intermediary comp_48
named time
official b
intermediary comp_49
named threadName
official c
intermediary comp_50
named allocated
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
-
Field Summary
-
Constructor Summary
ConstructorDescriptionThreadAllocationStatisticsSample
(Instant instant, String string, long long2) -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the value of theallocated
record component.final boolean
Indicates whether some other object is "equal to" this one.fromEvent
(RecordedEvent event) final int
hashCode()
Returns a hash code value for this object.Returns the value of thethreadName
record component.time()
Returns the value of thetime
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
time
The field for thetime
record component. -
threadName
The field for thethreadName
record component. -
allocated
private final long allocatedThe field for theallocated
record component. -
UNKNOWN
- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lben;d:Ljava/lang/String;
intermediary field_34446
Lnet/minecraft/class_6530;field_34446:Ljava/lang/String;
named UNKNOWN
Lnet/minecraft/util/profiling/jfr/sample/ThreadAllocationStatisticsSample;UNKNOWN:Ljava/lang/String;
-
-
Constructor Details
-
ThreadAllocationStatisticsSample
-
-
Method Details
-
fromEvent
- Mappings:
Namespace Name Mixin selector official a
Lben;a(Ljdk/jfr/consumer/RecordedEvent;)Lben;
intermediary method_38057
Lnet/minecraft/class_6530;method_38057(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_6530;
named fromEvent
Lnet/minecraft/util/profiling/jfr/sample/ThreadAllocationStatisticsSample;fromEvent(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/util/profiling/jfr/sample/ThreadAllocationStatisticsSample;
-
toAllocationMap
public static ThreadAllocationStatisticsSample.AllocationMap toAllocationMap(List<ThreadAllocationStatisticsSample> samples) - Mappings:
Namespace Name Mixin selector official a
Lben;a(Ljava/util/List;)Lben$a;
intermediary method_38055
Lnet/minecraft/class_6530;method_38055(Ljava/util/List;)Lnet/minecraft/class_6530$class_6531;
named toAllocationMap
Lnet/minecraft/util/profiling/jfr/sample/ThreadAllocationStatisticsSample;toAllocationMap(Ljava/util/List;)Lnet/minecraft/util/profiling/jfr/sample/ThreadAllocationStatisticsSample$AllocationMap;
-
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
-
threadName
Returns the value of thethreadName
record component.- Returns:
- the value of the
threadName
record component
-
allocated
public long allocated()Returns the value of theallocated
record component.- Returns:
- the value of the
allocated
record component
-