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 Summary
Modifier and TypeFieldDescriptionprivate final List<ChunkGenStat>
The field for thechunkGenStats
record component.private final List<CpuLoadStat>
The field for thecpuLoadStats
record component.private final FileIOStat.Summary
The field for thefileReads
record component.private final FileIOStat.Summary
The field for thefileWrites
record component.private final GcHeapStat.Summary
The field for theheapSummary
record component.private final NetworkPacketSummary
The field for thereceivedPacketsSummary
record component.private final Duration
The field for therecordingDuration
record component.private final Instant
The field for therecordingEnded
record component.private final Instant
The field for therecordingStarted
record component.private final NetworkPacketSummary
The field for thesentPacketsSummary
record component.private final ThreadAllocationStat.Summary
The field for thethreadAllocationSummary
record component.private final List<TickTimeStat>
The field for thetickTimes
record component.private final Duration
The field for theworldCreationDuration
record component. -
Constructor Summary
ConstructorDescriptionJfrStatsResult
(Instant recordingStarted, Instant recordingEnded, Duration recordingDuration, 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 aJfrStatsResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionasJson()
Returns the value of thechunkGenStats
record component.List<com.mojang.datafixers.util.Pair<ChunkStatus,
TimedStatSummary<ChunkGenStat>>> Returns the value of thecpuLoadStats
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefileReads
record component.Returns the value of thefileWrites
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theheapSummary
record component.Returns the value of thereceivedPacketsSummary
record component.Returns the value of therecordingDuration
record component.Returns the value of therecordingEnded
record component.Returns the value of therecordingStarted
record component.Returns the value of thesentPacketsSummary
record component.Returns the value of thethreadAllocationSummary
record component.Returns the value of thetickTimes
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theworldCreationDuration
record component.
-
Field Details
-
recordingStarted
The field for therecordingStarted
record component. -
recordingEnded
The field for therecordingEnded
record component. -
recordingDuration
The field for therecordingDuration
record component. -
worldCreationDuration
The field for theworldCreationDuration
record component. -
tickTimes
The field for thetickTimes
record component. -
cpuLoadStats
The field for thecpuLoadStats
record component. -
heapSummary
The field for theheapSummary
record component. -
threadAllocationSummary
The field for thethreadAllocationSummary
record component. -
receivedPacketsSummary
The field for thereceivedPacketsSummary
record component. -
sentPacketsSummary
The field for thesentPacketsSummary
record component. -
fileWrites
The field for thefileWrites
record component. -
fileReads
The field for thefileReads
record component. -
chunkGenStats
The field for thechunkGenStats
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 aJfrStatsResult
record class.- Parameters:
recordingStarted
- the value for therecordingStarted
record componentrecordingEnded
- the value for therecordingEnded
record componentrecordingDuration
- the value for therecordingDuration
record componentworldCreationDuration
- the value for theworldCreationDuration
record componenttickTimes
- the value for thetickTimes
record componentcpuLoadStats
- the value for thecpuLoadStats
record componentheapSummary
- the value for theheapSummary
record componentthreadAllocationSummary
- the value for thethreadAllocationSummary
record componentreceivedPacketsSummary
- the value for thereceivedPacketsSummary
record componentsentPacketsSummary
- the value for thesentPacketsSummary
record componentfileWrites
- the value for thefileWrites
record componentfileReads
- the value for thefileReads
record componentchunkGenStats
- the value for thechunkGenStats
record 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 therecordingStarted
record component.- Returns:
- the value of the
recordingStarted
record component
-
recordingEnded
Returns the value of therecordingEnded
record component.- Returns:
- the value of the
recordingEnded
record component
-
recordingDuration
Returns the value of therecordingDuration
record component.- Returns:
- the value of the
recordingDuration
record component
-
worldCreationDuration
Returns the value of theworldCreationDuration
record component.- Returns:
- the value of the
worldCreationDuration
record component
-
tickTimes
Returns the value of thetickTimes
record component.- Returns:
- the value of the
tickTimes
record component
-
cpuLoadStats
Returns the value of thecpuLoadStats
record component.- Returns:
- the value of the
cpuLoadStats
record component
-
heapSummary
Returns the value of theheapSummary
record component.- Returns:
- the value of the
heapSummary
record component
-
threadAllocationSummary
Returns the value of thethreadAllocationSummary
record component.- Returns:
- the value of the
threadAllocationSummary
record component
-
receivedPacketsSummary
Returns the value of thereceivedPacketsSummary
record component.- Returns:
- the value of the
receivedPacketsSummary
record component
-
sentPacketsSummary
Returns the value of thesentPacketsSummary
record component.- Returns:
- the value of the
sentPacketsSummary
record component
-
fileWrites
Returns the value of thefileWrites
record component.- Returns:
- the value of the
fileWrites
record component
-
fileReads
Returns the value of thefileReads
record component.- Returns:
- the value of the
fileReads
record component
-
chunkGenStats
Returns the value of thechunkGenStats
record component.- Returns:
- the value of the
chunkGenStats
record component
-