Class JfrResultJsonSerializer
java.lang.Object
net.minecraft.util.profiling.jfr.serialize.JfrResultJsonSerializer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate com.google.gson.JsonElement
chunkGen
(List<com.mojang.datafixers.util.Pair<ChunkStatus, TimedStatSummary<ChunkGenStat>>> p_185573_) private com.google.gson.JsonElement
cpu
(List<CpuLoadStat> p_185591_) private com.google.gson.JsonElement
fileIO
(JfrStatsResult p_185578_) private com.google.gson.JsonElement
fileIoSummary
(FileIOStat.Summary p_185540_) format
(JfrStatsResult p_185536_) private com.google.gson.JsonElement
heap
(GcHeapStat.Summary p_185542_) private <T> com.google.gson.JsonElement
ioSummary
(IoSummary<T> p_333759_, BiConsumer<T, com.google.gson.JsonObject> p_328845_) private com.google.gson.JsonElement
network
(JfrStatsResult p_185589_) private static void
serializeChunkId
(ChunkIdentification p_332094_, com.google.gson.JsonObject p_330415_) private static void
serializePacketId
(PacketIdentification p_335435_, com.google.gson.JsonObject p_331788_) private com.google.gson.JsonElement
serverTicks
(List<TickTimeStat> p_185587_) private com.google.gson.JsonElement
threadAllocations
(ThreadAllocationStat.Summary p_185546_)
-
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_335435_, com.google.gson.JsonObject p_331788_) -
serializeChunkId
private static void serializeChunkId(ChunkIdentification p_332094_, com.google.gson.JsonObject p_330415_) -
format
-
heap
-
chunkGen
private com.google.gson.JsonElement chunkGen(List<com.mojang.datafixers.util.Pair<ChunkStatus, TimedStatSummary<ChunkGenStat>>> p_185573_) -
threadAllocations
-
serverTicks
-
fileIO
-
fileIoSummary
-
network
-
ioSummary
private <T> com.google.gson.JsonElement ioSummary(IoSummary<T> p_333759_, BiConsumer<T, com.google.gson.JsonObject> p_328845_) -
cpu
-