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<Pair<ChunkStatus, TimedStatSummary<ChunkGenStat>>> chunkGenSummary) private com.google.gson.JsonElementcpu(List<CpuLoadStat> cpuStats) private com.google.gson.JsonElementfileIO(JfrStatsResult jfrStats) private com.google.gson.JsonElementformat(JfrStatsResult jfrStats) private com.google.gson.JsonElementprivate com.google.gson.JsonElementheap(GcHeapStat.Summary heapSummary) private <T> com.google.gson.JsonElementioSummary(IoSummary<T> summary, BiConsumer<T, com.google.gson.JsonObject> elementWriter) private com.google.gson.JsonElementnetwork(JfrStatsResult jfrStats) private static voidserializeChunkId(ChunkIdentification identifier, com.google.gson.JsonObject output) private static voidserializePacketId(PacketIdentification identifier, com.google.gson.JsonObject output) private com.google.gson.JsonElementserverTicks(List<TickTimeStat> tickTimeStats) private com.google.gson.JsonElementstructureGen(List<StructureGenStat> structureGenStats) private com.google.gson.JsonElementthreadAllocations(ThreadAllocationStat.Summary threadAllocationSummary)
-
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 identifier, com.google.gson.JsonObject output) -
serializeChunkId
private static void serializeChunkId(ChunkIdentification identifier, com.google.gson.JsonObject output) -
format
-
heap
-
structureGen
-
chunkGen
private com.google.gson.JsonElement chunkGen(List<Pair<ChunkStatus, TimedStatSummary<ChunkGenStat>>> chunkGenSummary) -
threadAllocations
private com.google.gson.JsonElement threadAllocations(ThreadAllocationStat.Summary threadAllocationSummary) -
serverTicks
-
fps
-
fileIO
-
fileIoSummary
-
network
-
ioSummary
private <T> com.google.gson.JsonElement ioSummary(IoSummary<T> summary, BiConsumer<T, com.google.gson.JsonObject> elementWriter) -
cpu
-