net.minecraft.util.profiling.jfr

public class JfrProfiler

implements FlightProfiler

net.minecraft.util.profiling.jfr.JfrProfiler
net.minecraft.util.profiling.jfr.JfrProfiler
net.minecraft.class_6505
net.minecraft.util.profiling.jfr.JfrProfiler

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
LOGGER
field_34408
LOGGER
public static final String
ROOT_CATEGORY
ROOT_CATEGORY
field_34403
MINECRAFT
public static final String
WORLD_GEN_CATEGORY
WORLD_GEN_CATEGORY
field_34404
WORLD_GENERATION
public static final String
TICK_CATEGORY
TICK_CATEGORY
field_34405
TICKING
public static final String
NETWORK_CATEGORY
NETWORK_CATEGORY
field_34406
NETWORK
public static final String
STORAGE_CATEGORY
STORAGE_CATEGORY
field_49058
STORAGE
private static final List<Class<? extends Event>>
CUSTOM_EVENTS
CUSTOM_EVENTS
field_34407
EVENTS
private static final String
FLIGHT_RECORDER_CONFIG
FLIGHT_RECORDER_CONFIG
field_34409
CONFIG_PATH
private static final DateTimeFormatter
DATE_TIME_FORMATTER
DATE_TIME_FORMATTER
field_34410
DATE_TIME_FORMAT
private static final JfrProfiler
INSTANCE
INSTANCE
field_35576
INSTANCE
private Recording
recording
recording
field_34411
currentRecording
private int
currentFPS
currentFPS
field_63275
fps
private float
currentAverageTickTimeServer
currentAverageTickTimeServer
field_35577
tickTime
private final Map<String, NetworkSummaryEvent$Recorder>
networkTrafficByAddress
networkTrafficByAddress
field_35578
summaryRecorderByAddress
private final Runnable
periodicClientFps
periodicClientFps
field_63276
fpsEventRecorder
private final Runnable
periodicServerTickTime
periodicServerTickTime
field_63277
tickTimeEventRecorder
private final Runnable
periodicNetworkSummary
periodicNetworkSummary
field_63278
networkSummaryEventRecorder

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
private void
registerPeriodicEvents()
registerPeriodicEvents()
method_75089()
addPeriodicEvents()
private static void
addPeriodicEvent(Class<? extends Event> eventClass, Runnable runnable)
addPeriodicEvent(Class<? extends Event> eventClass, Runnable runnable)
method_75088(Class<? extends Event> arg0, Runnable arg1)
addPeriodicEvent(Class<? extends Event> clazz, Runnable recorder)
public static JfrProfiler
getInstance()
getInstance()
method_39428()
getInstance()
public boolean
start(Environment environment)
start(Environment environment)
method_37981(class_6506 arg0)
start(InstanceType arg0)
public Path
stop()
stop()
method_37980()
stop()
public boolean
isRunning()
isRunning()
method_37984()
isProfiling()
public boolean
isAvailable()
isAvailable()
method_38658()
isAvailable()
private boolean
start(Reader configurationFile, Environment environment)
start(Reader configurationFile, Environment environment)
method_37983(Reader arg0, class_6506 arg1)
start(Reader reader, InstanceType instanceType)
private void
setupSummaryListener()
setupSummaryListener()
method_38660()
addListener()
public void
onClientTick(int fps)
onClientTick(int fps)
method_75087(int arg0)
onClientFps(int arg0)
public void
onServerTick(float currentAverageTickTime)
onServerTick(float currentAverageTickTime)
method_38654(float arg0)
onTick(float arg0)
public void
onPacketReceived(ConnectionProtocol protocol, PacketType<?> packetId, SocketAddress remoteAddress, int readableBytes)
onPacketReceived(ConnectionProtocol protocol, PacketType<?> packetId, SocketAddress remoteAddress, int readableBytes)
method_38656(class_2539 arg0, class_9145<?> arg1, SocketAddress arg2, int arg3)
onPacketReceived(NetworkPhase arg0, PacketType<?> arg1, SocketAddress arg2, int arg3)
public void
onPacketSent(ConnectionProtocol protocol, PacketType<?> packetId, SocketAddress remoteAddress, int writtenBytes)
onPacketSent(ConnectionProtocol protocol, PacketType<?> packetId, SocketAddress remoteAddress, int writtenBytes)
method_38657(class_2539 arg0, class_9145<?> arg1, SocketAddress arg2, int arg3)
onPacketSent(NetworkPhase arg0, PacketType<?> arg1, SocketAddress arg2, int arg3)
private NetworkSummaryEvent$Recorder
networkStatFor(SocketAddress remoteAddress)
networkStatFor(SocketAddress remoteAddress)
method_39429(SocketAddress arg0)
getOrCreateSummaryRecorder(SocketAddress address)
public void
onRegionFileRead(RegionStorageInfo info, ChunkPos pos, RegionFileVersion version, int readBytes)
onRegionFileRead(RegionStorageInfo info, ChunkPos pos, RegionFileVersion version, int readBytes)
method_56979(class_9240 arg0, class_1923 arg1, class_4486 arg2, int arg3)
onChunkRegionRead(StorageKey arg0, ChunkPos arg1, ChunkCompressionFormat arg2, int arg3)
public void
onRegionFileWrite(RegionStorageInfo info, ChunkPos pos, RegionFileVersion version, int writtenBytes)
onRegionFileWrite(RegionStorageInfo info, ChunkPos pos, RegionFileVersion version, int writtenBytes)
method_56980(class_9240 arg0, class_1923 arg1, class_4486 arg2, int arg3)
onChunkRegionWrite(StorageKey arg0, ChunkPos arg1, ChunkCompressionFormat arg2, int arg3)
public Finishable
onWorldLoadedStarted()
onWorldLoadedStarted()
method_38659()
startWorldLoadProfiling()
public Finishable
onChunkGenerate(ChunkPos pos, ResourceKey<Level> dimension, String name)
onChunkGenerate(ChunkPos pos, ResourceKey<Level> dimension, String name)
method_38655(class_1923 arg0, class_5321<class_1937> arg1, String arg2)
startChunkGenerationProfiling(ChunkPos arg0, RegistryKey<World> arg1, String arg2)
public Finishable
onStructureGenerate(ChunkPos sourceChunkPos, ResourceKey<Level> dimension, Holder<Structure> structure)
onStructureGenerate(ChunkPos sourceChunkPos, ResourceKey<Level> dimension, Holder<Structure> structure)
method_65105(class_1923 arg0, class_5321<class_1937> arg1, class_6880<class_3195> arg2)
startStructureGenerationProfiling(ChunkPos arg0, RegistryKey<World> arg1, RegistryEntry<Structure> arg2)