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
(int p_185363_, int p_185364_, SocketAddress p_185365_, int p_185366_) void
onPacketSent
(int p_185375_, int p_185376_, SocketAddress p_185377_, int p_185378_) 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
- Specified by:
onPacketReceived
in interfaceJvmProfiler
-
onPacketSent
- Specified by:
onPacketSent
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
-