Record Class JfrStatsResult

java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.parse.JfrStatsResult

public record JfrStatsResult(Instant recordingStarted, Instant recordingEnded, Duration recordingDuration, @Nullable Duration worldCreationDuration, List<TickTimeStat> tickTimes, List<CpuLoadStat> cpuLoadStats, GcHeapStat.Summary heapSummary, ThreadAllocationStat.Summary threadAllocationSummary, NetworkPacketSummary receivedPacketsSummary, NetworkPacketSummary sentPacketsSummary, FileIOStat.Summary fileWrites, FileIOStat.Summary fileReads, List<ChunkGenStat> chunkGenStats) extends Record
  • Field Details

    • recordingStarted

      private final Instant recordingStarted
      The field for the recordingStarted record component.
    • recordingEnded

      private final Instant recordingEnded
      The field for the recordingEnded record component.
    • recordingDuration

      private final Duration recordingDuration
      The field for the recordingDuration record component.
    • worldCreationDuration

      @Nullable private final Duration worldCreationDuration
      The field for the worldCreationDuration record component.
    • tickTimes

      private final List<TickTimeStat> tickTimes
      The field for the tickTimes record component.
    • cpuLoadStats

      private final List<CpuLoadStat> cpuLoadStats
      The field for the cpuLoadStats record component.
    • heapSummary

      private final GcHeapStat.Summary heapSummary
      The field for the heapSummary record component.
    • threadAllocationSummary

      private final ThreadAllocationStat.Summary threadAllocationSummary
      The field for the threadAllocationSummary record component.
    • receivedPacketsSummary

      private final NetworkPacketSummary receivedPacketsSummary
      The field for the receivedPacketsSummary record component.
    • sentPacketsSummary

      private final NetworkPacketSummary sentPacketsSummary
      The field for the sentPacketsSummary record component.
    • fileWrites

      private final FileIOStat.Summary fileWrites
      The field for the fileWrites record component.
    • fileReads

      private final FileIOStat.Summary fileReads
      The field for the fileReads record component.
    • chunkGenStats

      private final List<ChunkGenStat> chunkGenStats
      The field for the chunkGenStats record component.
  • Constructor Details

    • JfrStatsResult

      public JfrStatsResult(Instant recordingStarted, Instant recordingEnded, Duration recordingDuration, @Nullable Duration worldCreationDuration, List<TickTimeStat> tickTimes, List<CpuLoadStat> cpuLoadStats, GcHeapStat.Summary heapSummary, ThreadAllocationStat.Summary threadAllocationSummary, NetworkPacketSummary receivedPacketsSummary, NetworkPacketSummary sentPacketsSummary, FileIOStat.Summary fileWrites, FileIOStat.Summary fileReads, List<ChunkGenStat> chunkGenStats)
      Creates an instance of a JfrStatsResult record class.
      Parameters:
      recordingStarted - the value for the recordingStarted record component
      recordingEnded - the value for the recordingEnded record component
      recordingDuration - the value for the recordingDuration record component
      worldCreationDuration - the value for the worldCreationDuration record component
      tickTimes - the value for the tickTimes record component
      cpuLoadStats - the value for the cpuLoadStats record component
      heapSummary - the value for the heapSummary record component
      threadAllocationSummary - the value for the threadAllocationSummary record component
      receivedPacketsSummary - the value for the receivedPacketsSummary record component
      sentPacketsSummary - the value for the sentPacketsSummary record component
      fileWrites - the value for the fileWrites record component
      fileReads - the value for the fileReads record component
      chunkGenStats - the value for the chunkGenStats record component
  • Method Details

    • chunkGenSummary

      public List<com.mojang.datafixers.util.Pair<ChunkStatus,TimedStatSummary<ChunkGenStat>>> chunkGenSummary()
    • asJson

      public String asJson()
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • recordingStarted

      public Instant recordingStarted()
      Returns the value of the recordingStarted record component.
      Returns:
      the value of the recordingStarted record component
    • recordingEnded

      public Instant recordingEnded()
      Returns the value of the recordingEnded record component.
      Returns:
      the value of the recordingEnded record component
    • recordingDuration

      public Duration recordingDuration()
      Returns the value of the recordingDuration record component.
      Returns:
      the value of the recordingDuration record component
    • worldCreationDuration

      @Nullable public Duration worldCreationDuration()
      Returns the value of the worldCreationDuration record component.
      Returns:
      the value of the worldCreationDuration record component
    • tickTimes

      public List<TickTimeStat> tickTimes()
      Returns the value of the tickTimes record component.
      Returns:
      the value of the tickTimes record component
    • cpuLoadStats

      public List<CpuLoadStat> cpuLoadStats()
      Returns the value of the cpuLoadStats record component.
      Returns:
      the value of the cpuLoadStats record component
    • heapSummary

      public GcHeapStat.Summary heapSummary()
      Returns the value of the heapSummary record component.
      Returns:
      the value of the heapSummary record component
    • threadAllocationSummary

      public ThreadAllocationStat.Summary threadAllocationSummary()
      Returns the value of the threadAllocationSummary record component.
      Returns:
      the value of the threadAllocationSummary record component
    • receivedPacketsSummary

      public NetworkPacketSummary receivedPacketsSummary()
      Returns the value of the receivedPacketsSummary record component.
      Returns:
      the value of the receivedPacketsSummary record component
    • sentPacketsSummary

      public NetworkPacketSummary sentPacketsSummary()
      Returns the value of the sentPacketsSummary record component.
      Returns:
      the value of the sentPacketsSummary record component
    • fileWrites

      public FileIOStat.Summary fileWrites()
      Returns the value of the fileWrites record component.
      Returns:
      the value of the fileWrites record component
    • fileReads

      public FileIOStat.Summary fileReads()
      Returns the value of the fileReads record component.
      Returns:
      the value of the fileReads record component
    • chunkGenStats

      public List<ChunkGenStat> chunkGenStats()
      Returns the value of the chunkGenStats record component.
      Returns:
      the value of the chunkGenStats record component