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.JsonElementchunkGen(List<com.mojang.datafixers.util.Pair<ChunkStatus, TimedStatSummary<ChunkGenStat>>> summary) private com.google.gson.JsonElementcpu(List<CpuLoadStat> stats) private com.google.gson.JsonElementfileIO(JfrStatsResult result) private com.google.gson.JsonElementfileIoSummary(FileIOStat.Summary summary) format(JfrStatsResult result) private com.google.gson.JsonElementheap(GcHeapStat.Summary summary) private <T> com.google.gson.JsonElementioSummary(IoSummary<T> ioSummary, BiConsumer<T, com.google.gson.JsonObject> serializer) private com.google.gson.JsonElementnetwork(JfrStatsResult result) private static voidserializeChunkId(ChunkIdentification chunkIndentification, com.google.gson.JsonObject json) private static voidserializePacketId(PacketIdentification packetIdentification, com.google.gson.JsonObject json) private com.google.gson.JsonElementserverTicks(List<TickTimeStat> stats) 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 packetIdentification, com.google.gson.JsonObject json) -
serializeChunkId
private static void serializeChunkId(ChunkIdentification chunkIndentification, com.google.gson.JsonObject json) -
format
-
heap
-
chunkGen
private com.google.gson.JsonElement chunkGen(List<com.mojang.datafixers.util.Pair<ChunkStatus, TimedStatSummary<ChunkGenStat>>> summary) -
threadAllocations
-
serverTicks
-
fileIO
-
fileIoSummary
-
network
-
ioSummary
private <T> com.google.gson.JsonElement ioSummary(IoSummary<T> ioSummary, BiConsumer<T, com.google.gson.JsonObject> serializer) -
cpu
-