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 bqv
named time
intermediary comp_48
official a
named threadName
intermediary comp_49
official b
named allocated
intermediary comp_50
official c
  • Field Details

    • time

      private final Instant time
      The field for the time record component.
    • threadName

      private final String threadName
      The field for the threadName record component.
    • allocated

      private final long allocated
      The field for the allocated record component.
    • UNKNOWN

      private static final String 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 Lbqv;d:Ljava/lang/String;
  • Constructor Details

    • ThreadAllocationStatisticsSample

      public ThreadAllocationStatisticsSample(Instant instant, String string, long long2)
  • Method Details

    • fromEvent

      public static ThreadAllocationStatisticsSample fromEvent(RecordedEvent event)
      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 Lbqv;a(Ljdk/jfr/consumer/RecordedEvent;)Lbqv;
    • toAllocationMap

      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 Lbqv;a(Ljava/util/List;)Lbqv$a;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • time

      public Instant time()
      Returns the value of the time record component.
      Returns:
      the value of the time record component
    • threadName

      public String threadName()
      Returns the value of the threadName record component.
      Returns:
      the value of the threadName record component
    • allocated

      public long allocated()
      Returns the value of the allocated record component.
      Returns:
      the value of the allocated record component