Class JfrResultJsonSerializer
java.lang.Object
net.minecraft.util.profiling.jfr.serialize.JfrResultJsonSerializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate com.google.gson.JsonElement
chunkGen
(List<com.mojang.datafixers.util.Pair<ChunkStatus, TimedStatSummary<ChunkGenStat>>> pSummary) private com.google.gson.JsonElement
cpu
(List<CpuLoadStat> pStats) private com.google.gson.JsonElement
fileIO
(JfrStatsResult pResult) private com.google.gson.JsonElement
fileIoSummary
(FileIOStat.Summary pSummary) format
(JfrStatsResult pResult) private com.google.gson.JsonElement
heap
(GcHeapStat.Summary pSummary) private <T> com.google.gson.JsonElement
ioSummary
(IoSummary<T> pIoSummary, BiConsumer<T, com.google.gson.JsonObject> pSerializer) private com.google.gson.JsonElement
network
(JfrStatsResult pResult) private static void
serializeChunkId
(ChunkIdentification p_325926_, com.google.gson.JsonObject p_325916_) private static void
serializePacketId
(PacketIdentification p_326086_, com.google.gson.JsonObject p_326120_) private com.google.gson.JsonElement
serverTicks
(List<TickTimeStat> pStats) private com.google.gson.JsonElement
-
Field Details
-
BYTES_PER_SECOND
- See Also:
-
COUNT
- See Also:
-
DURATION_NANOS_TOTAL
- See Also:
-
TOTAL_BYTES
- See Also:
-
COUNT_PER_SECOND
- See Also:
-
gson
final com.google.gson.Gson gson
-
-
Constructor Details
-
JfrResultJsonSerializer
public JfrResultJsonSerializer()
-
-
Method Details
-
serializePacketId
private static void serializePacketId(PacketIdentification p_326086_, com.google.gson.JsonObject p_326120_) -
serializeChunkId
private static void serializeChunkId(ChunkIdentification p_325926_, com.google.gson.JsonObject p_325916_) -
format
-
heap
-
chunkGen
private com.google.gson.JsonElement chunkGen(List<com.mojang.datafixers.util.Pair<ChunkStatus, TimedStatSummary<ChunkGenStat>>> pSummary) -
threadAllocations
-
serverTicks
-
fileIO
-
fileIoSummary
-
network
-
ioSummary
private <T> com.google.gson.JsonElement ioSummary(IoSummary<T> pIoSummary, BiConsumer<T, com.google.gson.JsonObject> pSerializer) -
cpu
-