Package net.minecraft.util.profiling.jfr
Class JfrProfiler
java.lang.Object
net.minecraft.util.profiling.jfr.JfrProfiler
- All Implemented Interfaces:
JvmProfiler
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.profiling.jfr.JvmProfiler
JvmProfiler.NoOpProfiler
-
Field Summary
Modifier and TypeFieldDescriptionprivate float
private static final DateTimeFormatter
private static final String
private static final JfrProfiler
private static final org.slf4j.Logger
static final String
private final Map
<String, NetworkSummaryEvent.SumAggregation> (package private) Recording
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JfrProfiler
boolean
boolean
networkStatFor
(SocketAddress p_185320_) onChunkGenerate
(ChunkPos p_185313_, ResourceKey<Level> p_185314_, String p_185315_) void
onPacketReceived
(ConnectionProtocol p_300094_, PacketType<?> p_335626_, SocketAddress p_185304_, int p_185302_) void
onPacketSent
(ConnectionProtocol p_299489_, PacketType<?> p_334491_, SocketAddress p_185325_, int p_185323_) void
onRegionFileRead
(RegionStorageInfo p_332602_, ChunkPos p_331074_, RegionFileVersion p_332565_, int p_334299_) void
onRegionFileWrite
(RegionStorageInfo p_334895_, ChunkPos p_330898_, RegionFileVersion p_334334_, int p_334429_) void
onServerTick
(float p_185300_) private void
private boolean
start
(Reader p_185317_, Environment p_185318_) boolean
start
(Environment p_185307_) stop()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
ROOT_CATEGORY
- See Also:
-
WORLD_GEN_CATEGORY
- See Also:
-
TICK_CATEGORY
- See Also:
-
NETWORK_CATEGORY
- See Also:
-
STORAGE_CATEGORY
- See Also:
-
CUSTOM_EVENTS
-
FLIGHT_RECORDER_CONFIG
- See Also:
-
DATE_TIME_FORMATTER
-
INSTANCE
-
recording
-
currentAverageTickTime
private float currentAverageTickTime -
networkTrafficByAddress
-
-
Constructor Details
-
JfrProfiler
private JfrProfiler()
-
-
Method Details
-
getInstance
-
start
- Specified by:
start
in interfaceJvmProfiler
-
stop
- Specified by:
stop
in interfaceJvmProfiler
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceJvmProfiler
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailable
in interfaceJvmProfiler
-
start
-
setupSummaryListener
private void setupSummaryListener() -
onServerTick
public void onServerTick(float p_185300_) - Specified by:
onServerTick
in interfaceJvmProfiler
-
onPacketReceived
public void onPacketReceived(ConnectionProtocol p_300094_, PacketType<?> p_335626_, SocketAddress p_185304_, int p_185302_) - Specified by:
onPacketReceived
in interfaceJvmProfiler
-
onPacketSent
public void onPacketSent(ConnectionProtocol p_299489_, PacketType<?> p_334491_, SocketAddress p_185325_, int p_185323_) - Specified by:
onPacketSent
in interfaceJvmProfiler
-
networkStatFor
-
onRegionFileRead
public void onRegionFileRead(RegionStorageInfo p_332602_, ChunkPos p_331074_, RegionFileVersion p_332565_, int p_334299_) - Specified by:
onRegionFileRead
in interfaceJvmProfiler
-
onRegionFileWrite
public void onRegionFileWrite(RegionStorageInfo p_334895_, ChunkPos p_330898_, RegionFileVersion p_334334_, int p_334429_) - Specified by:
onRegionFileWrite
in interfaceJvmProfiler
-
onWorldLoadedStarted
- Specified by:
onWorldLoadedStarted
in interfaceJvmProfiler
-
onChunkGenerate
@Nullable public ProfiledDuration onChunkGenerate(ChunkPos p_185313_, ResourceKey<Level> p_185314_, String p_185315_) - Specified by:
onChunkGenerate
in interfaceJvmProfiler
-