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 awy
intermediary net/minecraft/class_6525
named net/minecraft/util/profiling/jfr/sample/GcHeapSummarySample
official a
intermediary comp_34
named time
official b
intermediary comp_35
named heapUsed
official c
intermediary comp_36
named summaryType
  • Field Details

  • Constructor Details

  • Method Details

    • fromEvent

      public static GcHeapSummarySample fromEvent(RecordedEvent event)
      Mappings:
      Namespace Name Mixin selector
      official a Lawy;a(Ljdk/jfr/consumer/RecordedEvent;)Lawy;
      intermediary method_38042 Lnet/minecraft/class_6525;method_38042(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_6525;
      named fromEvent Lnet/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 a Lawy;a(Ljava/time/Duration;Ljava/util/List;Ljava/time/Duration;I)Lawy$a;
      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;
      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;
    • getAllocatedBytesPerSecond

      private static double getAllocatedBytesPerSecond(List<GcHeapSummarySample> samples)
      Mappings:
      Namespace Name Mixin selector
      official a Lawy;a(Ljava/util/List;)D
      intermediary method_38041 Lnet/minecraft/class_6525;method_38041(Ljava/util/List;)D
      named getAllocatedBytesPerSecond Lnet/minecraft/util/profiling/jfr/sample/GcHeapSummarySample;getAllocatedBytesPerSecond(Ljava/util/List;)D
    • 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
    • heapUsed

      public long heapUsed()
      Returns the value of the heapUsed record component.
      Returns:
      the value of the heapUsed record component
    • summaryType

      public GcHeapSummarySample.SummaryType summaryType()
      Returns the value of the summaryType record component.
      Returns:
      the value of the summaryType record component