Class JfrStatsParser
java.lang.Object
net.minecraft.util.profiling.jfr.parse.JfrStatsParser
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<ChunkGenStat> private final List
<CpuLoadStat> private final List
<FileIOStat> private final List
<FileIOStat> private int
private final List
<GcHeapStat> private Duration
private final Map
<ChunkIdentification, JfrStatsParser.MutableCountAndSize> private final Map
<PacketIdentification, JfrStatsParser.MutableCountAndSize> private Instant
private Instant
private final Map
<PacketIdentification, JfrStatsParser.MutableCountAndSize> private final List
<ThreadAllocationStat> private final List
<TickTimeStat> private Duration
private final Map
<ChunkIdentification, JfrStatsParser.MutableCountAndSize> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
appendFileIO
(RecordedEvent pEvent, List<FileIOStat> pStats, String pId) private void
capture
(Stream<RecordedEvent> pEvents) private static <T> IoSummary
<T> collectIoStats
(Duration pRecordingDuration, Map<T, JfrStatsParser.MutableCountAndSize> pEntries) private void
incrementChunk
(RecordedEvent pEvent, int pIncrement, Map<ChunkIdentification, JfrStatsParser.MutableCountAndSize> pChunks) private void
incrementPacket
(RecordedEvent pEvent, int pIncrement, Map<PacketIdentification, JfrStatsParser.MutableCountAndSize> pPackets) static JfrStatsResult
private JfrStatsResult
results()
-
Field Details
-
recordingStarted
-
recordingEnded
-
chunkGenStats
-
cpuLoadStat
-
receivedPackets
-
sentPackets
-
readChunks
-
writtenChunks
-
fileWrites
-
fileReads
-
garbageCollections
private int garbageCollections -
gcTotalDuration
-
gcHeapStats
-
threadAllocationStats
-
tickTimes
-
worldCreationDuration
-
-
Constructor Details
-
JfrStatsParser
-
-
Method Details
-
parse
-
results
-
capture
-
incrementPacket
private void incrementPacket(RecordedEvent pEvent, int pIncrement, Map<PacketIdentification, JfrStatsParser.MutableCountAndSize> pPackets) -
incrementChunk
private void incrementChunk(RecordedEvent pEvent, int pIncrement, Map<ChunkIdentification, JfrStatsParser.MutableCountAndSize> pChunks) -
appendFileIO
-
collectIoStats
private static <T> IoSummary<T> collectIoStats(Duration pRecordingDuration, Map<T, JfrStatsParser.MutableCountAndSize> pEntries)
-