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
-
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
(int p_185302_, int p_185303_, SocketAddress p_185304_, int p_185305_) void
onPacketSent
(int p_185323_, int p_185324_, SocketAddress p_185325_, int p_185326_) 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:
-
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
- Specified by:
onPacketReceived
in interfaceJvmProfiler
-
onPacketSent
- Specified by:
onPacketSent
in interfaceJvmProfiler
-
networkStatFor
-
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
-