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_294286_, PacketType<?> p_320639_, SocketAddress p_185304_, int p_185302_) void
onPacketSent
(ConnectionProtocol p_295940_, PacketType<?> p_320751_, SocketAddress p_185325_, int p_185323_) void
onRegionFileRead
(RegionStorageInfo p_326253_, ChunkPos p_326199_, RegionFileVersion p_326089_, int p_325934_) void
onRegionFileWrite
(RegionStorageInfo p_326009_, ChunkPos p_326210_, RegionFileVersion p_326516_, int p_326455_) 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_294286_, PacketType<?> p_320639_, SocketAddress p_185304_, int p_185302_) - Specified by:
onPacketReceived
in interfaceJvmProfiler
-
onPacketSent
public void onPacketSent(ConnectionProtocol p_295940_, PacketType<?> p_320751_, SocketAddress p_185325_, int p_185323_) - Specified by:
onPacketSent
in interfaceJvmProfiler
-
networkStatFor
-
onRegionFileRead
public void onRegionFileRead(RegionStorageInfo p_326253_, ChunkPos p_326199_, RegionFileVersion p_326089_, int p_325934_) - Specified by:
onRegionFileRead
in interfaceJvmProfiler
-
onRegionFileWrite
public void onRegionFileWrite(RegionStorageInfo p_326009_, ChunkPos p_326210_, RegionFileVersion p_326516_, int p_326455_) - 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
-