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 Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionJfrStatsResult(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 Summary
Modifier 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
-
recordingStarted
The field for therecordingStartedrecord component. -
recordingEnded
The field for therecordingEndedrecord component. -
recordingDuration
The field for therecordingDurationrecord component. -
worldCreationDuration
The field for theworldCreationDurationrecord component. -
tickTimes
The field for thetickTimesrecord component. -
cpuLoadStats
The field for thecpuLoadStatsrecord component. -
heapSummary
The field for theheapSummaryrecord component. -
threadAllocationSummary
The field for thethreadAllocationSummaryrecord component. -
receivedPacketsSummary
The field for thereceivedPacketsSummaryrecord component. -
sentPacketsSummary
The field for thesentPacketsSummaryrecord component. -
writtenChunks
The field for thewrittenChunksrecord component. -
readChunks
The field for thereadChunksrecord component. -
fileWrites
The field for thefileWritesrecord component. -
fileReads
The field for thefileReadsrecord component. -
chunkGenStats
The field for thechunkGenStatsrecord 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, 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 therecordingStartedrecord componentrecordingEnded- the value for therecordingEndedrecord componentrecordingDuration- the value for therecordingDurationrecord componentworldCreationDuration- the value for theworldCreationDurationrecord componenttickTimes- the value for thetickTimesrecord componentcpuLoadStats- the value for thecpuLoadStatsrecord componentheapSummary- the value for theheapSummaryrecord componentthreadAllocationSummary- the value for thethreadAllocationSummaryrecord componentreceivedPacketsSummary- the value for thereceivedPacketsSummaryrecord componentsentPacketsSummary- the value for thesentPacketsSummaryrecord componentwrittenChunks- the value for thewrittenChunksrecord componentreadChunks- the value for thereadChunksrecord componentfileWrites- the value for thefileWritesrecord componentfileReads- the value for thefileReadsrecord componentchunkGenStats- the value for thechunkGenStatsrecord component
-
-
Method Details
-
chunkGenSummary
public List<com.mojang.datafixers.util.Pair<ChunkStatus,TimedStatSummary<ChunkGenStat>>> chunkGenSummary() -
asJson
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
recordingStarted
Returns the value of therecordingStartedrecord component.- Returns:
- the value of the
recordingStartedrecord component
-
recordingEnded
Returns the value of therecordingEndedrecord component.- Returns:
- the value of the
recordingEndedrecord component
-
recordingDuration
Returns the value of therecordingDurationrecord component.- Returns:
- the value of the
recordingDurationrecord component
-
worldCreationDuration
Returns the value of theworldCreationDurationrecord component.- Returns:
- the value of the
worldCreationDurationrecord component
-
tickTimes
Returns the value of thetickTimesrecord component.- Returns:
- the value of the
tickTimesrecord component
-
cpuLoadStats
Returns the value of thecpuLoadStatsrecord component.- Returns:
- the value of the
cpuLoadStatsrecord component
-
heapSummary
Returns the value of theheapSummaryrecord component.- Returns:
- the value of the
heapSummaryrecord component
-
threadAllocationSummary
Returns the value of thethreadAllocationSummaryrecord component.- Returns:
- the value of the
threadAllocationSummaryrecord component
-
receivedPacketsSummary
Returns the value of thereceivedPacketsSummaryrecord component.- Returns:
- the value of the
receivedPacketsSummaryrecord component
-
sentPacketsSummary
Returns the value of thesentPacketsSummaryrecord component.- Returns:
- the value of the
sentPacketsSummaryrecord component
-
writtenChunks
Returns the value of thewrittenChunksrecord component.- Returns:
- the value of the
writtenChunksrecord component
-
readChunks
Returns the value of thereadChunksrecord component.- Returns:
- the value of the
readChunksrecord component
-
fileWrites
Returns the value of thefileWritesrecord component.- Returns:
- the value of the
fileWritesrecord component
-
fileReads
Returns the value of thefileReadsrecord component.- Returns:
- the value of the
fileReadsrecord component
-
chunkGenStats
Returns the value of thechunkGenStatsrecord component.- Returns:
- the value of the
chunkGenStatsrecord component
-