Package net.minecraft.util.profiling.jfr
Class JvmProfiler.NoOpProfiler
java.lang.Object
net.minecraft.util.profiling.jfr.JvmProfiler.NoOpProfiler
- All Implemented Interfaces:
JvmProfiler
- Enclosing interface:
JvmProfiler
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.profiling.jfr.JvmProfiler
JvmProfiler.NoOpProfiler
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
(package private) static final ProfiledDuration
Fields inherited from interface net.minecraft.util.profiling.jfr.JvmProfiler
INSTANCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
onChunkGenerate
(ChunkPos p_185370_, ResourceKey<Level> p_185371_, String p_185372_) void
onPacketReceived
(ConnectionProtocol p_298045_, PacketType<?> p_329330_, SocketAddress p_185365_, int p_185363_) void
onPacketSent
(ConnectionProtocol p_297220_, PacketType<?> p_336281_, SocketAddress p_185377_, int p_185375_) void
onRegionFileRead
(RegionStorageInfo p_328378_, ChunkPos p_330600_, RegionFileVersion p_329437_, int p_328234_) void
onRegionFileWrite
(RegionStorageInfo p_335465_, ChunkPos p_330839_, RegionFileVersion p_333005_, int p_328862_) void
onServerTick
(float p_185361_) boolean
start
(Environment p_185368_) stop()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
noOpCommit
-
-
Constructor Details
-
NoOpProfiler
public NoOpProfiler()
-
-
Method Details
-
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
-
onPacketReceived
public void onPacketReceived(ConnectionProtocol p_298045_, PacketType<?> p_329330_, SocketAddress p_185365_, int p_185363_) - Specified by:
onPacketReceived
in interfaceJvmProfiler
-
onPacketSent
public void onPacketSent(ConnectionProtocol p_297220_, PacketType<?> p_336281_, SocketAddress p_185377_, int p_185375_) - Specified by:
onPacketSent
in interfaceJvmProfiler
-
onRegionFileRead
public void onRegionFileRead(RegionStorageInfo p_328378_, ChunkPos p_330600_, RegionFileVersion p_329437_, int p_328234_) - Specified by:
onRegionFileRead
in interfaceJvmProfiler
-
onRegionFileWrite
public void onRegionFileWrite(RegionStorageInfo p_335465_, ChunkPos p_330839_, RegionFileVersion p_333005_, int p_328862_) - Specified by:
onRegionFileWrite
in interfaceJvmProfiler
-
onServerTick
public void onServerTick(float p_185361_) - Specified by:
onServerTick
in interfaceJvmProfiler
-
onWorldLoadedStarted
- Specified by:
onWorldLoadedStarted
in interfaceJvmProfiler
-
onChunkGenerate
@Nullable public ProfiledDuration onChunkGenerate(ChunkPos p_185370_, ResourceKey<Level> p_185371_, String p_185372_) - Specified by:
onChunkGenerate
in interfaceJvmProfiler
-