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, IoSummary<PacketIdentification> receivedPacketsSummary, IoSummary<PacketIdentification> sentPacketsSummary, IoSummary<ChunkIdentification> writtenChunks, IoSummary<ChunkIdentification> readChunks, FileIOStat.Summary fileWrites, FileIOStat.Summary fileReads, List<ChunkGenStat> chunkGenStats)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final List<ChunkGenStat> The field for thechunkGenStatsrecord component.private final List<CpuLoadStat> The field for thecpuLoadStatsrecord component.private final FileIOStat.SummaryThe field for thefileReadsrecord component.private final FileIOStat.SummaryThe field for thefileWritesrecord component.private final GcHeapStat.SummaryThe field for theheapSummaryrecord component.private final IoSummary<ChunkIdentification> The field for thereadChunksrecord component.private final IoSummary<PacketIdentification> The field for thereceivedPacketsSummaryrecord component.private final DurationThe field for therecordingDurationrecord component.private final InstantThe field for therecordingEndedrecord component.private final InstantThe field for therecordingStartedrecord component.private final IoSummary<PacketIdentification> The field for thesentPacketsSummaryrecord component.private final ThreadAllocationStat.SummaryThe field for thethreadAllocationSummaryrecord component.private final List<TickTimeStat> The field for thetickTimesrecord component.private final DurationThe field for theworldCreationDurationrecord component.private final IoSummary<ChunkIdentification> The field for thewrittenChunksrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionJfrStatsResult(Instant recordingStarted, Instant recordingEnded, Duration recordingDuration, Duration worldCreationDuration, List<TickTimeStat> tickTimes, List<CpuLoadStat> cpuLoadStats, GcHeapStat.Summary heapSummary, ThreadAllocationStat.Summary threadAllocationSummary, IoSummary<PacketIdentification> receivedPacketsSummary, IoSummary<PacketIdentification> sentPacketsSummary, IoSummary<ChunkIdentification> writtenChunks, IoSummary<ChunkIdentification> readChunks, FileIOStat.Summary fileWrites, FileIOStat.Summary fileReads, List<ChunkGenStat> chunkGenStats) Creates an instance of aJfrStatsResultrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionasJson()Returns the value of thechunkGenStatsrecord component.List<com.mojang.datafixers.util.Pair<ChunkStatus, TimedStatSummary<ChunkGenStat>>> Returns the value of thecpuLoadStatsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileReadsrecord component.Returns the value of thefileWritesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theheapSummaryrecord component.Returns the value of thereadChunksrecord component.Returns the value of thereceivedPacketsSummaryrecord component.Returns the value of therecordingDurationrecord component.Returns the value of therecordingEndedrecord component.Returns the value of therecordingStartedrecord component.Returns the value of thesentPacketsSummaryrecord component.Returns the value of thethreadAllocationSummaryrecord component.Returns the value of thetickTimesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworldCreationDurationrecord component.Returns the value of thewrittenChunksrecord component.
- 
Field Details- 
recordingStartedThe field for therecordingStartedrecord component.
- 
recordingEndedThe field for therecordingEndedrecord component.
- 
recordingDurationThe field for therecordingDurationrecord component.
- 
worldCreationDurationThe field for theworldCreationDurationrecord component.
- 
tickTimesThe field for thetickTimesrecord component.
- 
cpuLoadStatsThe field for thecpuLoadStatsrecord component.
- 
heapSummaryThe field for theheapSummaryrecord component.
- 
threadAllocationSummaryThe field for thethreadAllocationSummaryrecord component.
- 
receivedPacketsSummaryThe field for thereceivedPacketsSummaryrecord component.
- 
sentPacketsSummaryThe field for thesentPacketsSummaryrecord component.
- 
writtenChunksThe field for thewrittenChunksrecord component.
- 
readChunksThe field for thereadChunksrecord component.
- 
fileWritesThe field for thefileWritesrecord component.
- 
fileReadsThe field for thefileReadsrecord component.
- 
chunkGenStatsThe field for thechunkGenStatsrecord component.
 
- 
- 
Constructor Details- 
JfrStatsResultpublic JfrStatsResult(Instant recordingStarted, Instant recordingEnded, Duration recordingDuration, @Nullable Duration worldCreationDuration, List<TickTimeStat> tickTimes, List<CpuLoadStat> cpuLoadStats, GcHeapStat.Summary heapSummary, ThreadAllocationStat.Summary threadAllocationSummary, IoSummary<PacketIdentification> receivedPacketsSummary, IoSummary<PacketIdentification> sentPacketsSummary, IoSummary<ChunkIdentification> writtenChunks, IoSummary<ChunkIdentification> readChunks, FileIOStat.Summary fileWrites, FileIOStat.Summary fileReads, List<ChunkGenStat> chunkGenStats) Creates an instance of aJfrStatsResultrecord class.- Parameters:
- recordingStarted- the value for the- recordingStartedrecord component
- recordingEnded- the value for the- recordingEndedrecord component
- recordingDuration- the value for the- recordingDurationrecord component
- worldCreationDuration- the value for the- worldCreationDurationrecord component
- tickTimes- the value for the- tickTimesrecord component
- cpuLoadStats- the value for the- cpuLoadStatsrecord component
- heapSummary- the value for the- heapSummaryrecord component
- threadAllocationSummary- the value for the- threadAllocationSummaryrecord component
- receivedPacketsSummary- the value for the- receivedPacketsSummaryrecord component
- sentPacketsSummary- the value for the- sentPacketsSummaryrecord component
- writtenChunks- the value for the- writtenChunksrecord component
- readChunks- the value for the- readChunksrecord component
- fileWrites- the value for the- fileWritesrecord component
- fileReads- the value for the- fileReadsrecord component
- chunkGenStats- the value for the- chunkGenStatsrecord component
 
 
- 
- 
Method Details- 
chunkGenSummarypublic List<com.mojang.datafixers.util.Pair<ChunkStatus,TimedStatSummary<ChunkGenStat>>> chunkGenSummary()
- 
asJson
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 withObjects::equals(Object,Object).
- 
recordingStartedReturns the value of therecordingStartedrecord component.- Returns:
- the value of the recordingStartedrecord component
 
- 
recordingEndedReturns the value of therecordingEndedrecord component.- Returns:
- the value of the recordingEndedrecord component
 
- 
recordingDurationReturns the value of therecordingDurationrecord component.- Returns:
- the value of the recordingDurationrecord component
 
- 
worldCreationDurationReturns the value of theworldCreationDurationrecord component.- Returns:
- the value of the worldCreationDurationrecord component
 
- 
tickTimesReturns the value of thetickTimesrecord component.- Returns:
- the value of the tickTimesrecord component
 
- 
cpuLoadStatsReturns the value of thecpuLoadStatsrecord component.- Returns:
- the value of the cpuLoadStatsrecord component
 
- 
heapSummaryReturns the value of theheapSummaryrecord component.- Returns:
- the value of the heapSummaryrecord component
 
- 
threadAllocationSummaryReturns the value of thethreadAllocationSummaryrecord component.- Returns:
- the value of the threadAllocationSummaryrecord component
 
- 
receivedPacketsSummaryReturns the value of thereceivedPacketsSummaryrecord component.- Returns:
- the value of the receivedPacketsSummaryrecord component
 
- 
sentPacketsSummaryReturns the value of thesentPacketsSummaryrecord component.- Returns:
- the value of the sentPacketsSummaryrecord component
 
- 
writtenChunksReturns the value of thewrittenChunksrecord component.- Returns:
- the value of the writtenChunksrecord component
 
- 
readChunksReturns the value of thereadChunksrecord component.- Returns:
- the value of the readChunksrecord component
 
- 
fileWritesReturns the value of thefileWritesrecord component.- Returns:
- the value of the fileWritesrecord component
 
- 
fileReadsReturns the value of thefileReadsrecord component.- Returns:
- the value of the fileReadsrecord component
 
- 
chunkGenStatsReturns the value of thechunkGenStatsrecord component.- Returns:
- the value of the chunkGenStatsrecord component
 
 
-