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 bnt
named time
intermediary comp_34
official a
named heapUsed
intermediary comp_35
official b
named summaryType
intermediary comp_36
official c
  • Field Details

  • Constructor Details

  • Method Details

    • fromEvent

      public static GcHeapSummarySample fromEvent(RecordedEvent event)
      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 Lbnt;a(Ljdk/jfr/consumer/RecordedEvent;)Lbnt;
    • toStatistics

      public 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 Lbnt;a(Ljava/time/Duration;Ljava/util/List;Ljava/time/Duration;I)Lbnt$a;
    • getAllocatedBytesPerSecond

      private static double getAllocatedBytesPerSecond(List<GcHeapSummarySample> samples)
      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 Lbnt;a(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