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_296240_, PacketType<?> p_320930_, SocketAddress p_185365_, int p_185363_) void
onPacketSent
(ConnectionProtocol p_294630_, PacketType<?> p_319941_, SocketAddress p_185377_, int p_185375_) void
onRegionFileRead
(RegionStorageInfo p_326355_, ChunkPos p_325955_, RegionFileVersion p_326373_, int p_326370_) void
onRegionFileWrite
(RegionStorageInfo p_326307_, ChunkPos p_326173_, RegionFileVersion p_325998_, int p_326021_) 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_296240_, PacketType<?> p_320930_, SocketAddress p_185365_, int p_185363_) - Specified by:
onPacketReceived
in interfaceJvmProfiler
-
onPacketSent
public void onPacketSent(ConnectionProtocol p_294630_, PacketType<?> p_319941_, SocketAddress p_185377_, int p_185375_) - Specified by:
onPacketSent
in interfaceJvmProfiler
-
onRegionFileRead
public void onRegionFileRead(RegionStorageInfo p_326355_, ChunkPos p_325955_, RegionFileVersion p_326373_, int p_326370_) - Specified by:
onRegionFileRead
in interfaceJvmProfiler
-
onRegionFileWrite
public void onRegionFileWrite(RegionStorageInfo p_326307_, ChunkPos p_326173_, RegionFileVersion p_325998_, int p_326021_) - 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
-