Class NetworkPacketSummary
java.lang.Object
net.minecraft.util.profiling.jfr.stats.NetworkPacketSummary
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<com.mojang.datafixers.util.Pair<NetworkPacketSummary.PacketIdentification,
NetworkPacketSummary.PacketCountAndSize>> private final Duration
private final NetworkPacketSummary.PacketCountAndSize
-
Constructor Summary
ConstructorDescriptionNetworkPacketSummary
(Duration p_185738_, List<com.mojang.datafixers.util.Pair<NetworkPacketSummary.PacketIdentification, NetworkPacketSummary.PacketCountAndSize>> p_185739_) -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
long
long
List<com.mojang.datafixers.util.Pair<NetworkPacketSummary.PacketIdentification,
NetworkPacketSummary.PacketCountAndSize>>
-
Field Details
-
totalPacketCountAndSize
-
largestSizeContributors
private final List<com.mojang.datafixers.util.Pair<NetworkPacketSummary.PacketIdentification,NetworkPacketSummary.PacketCountAndSize>> largestSizeContributors -
recordingDuration
-
-
Constructor Details
-
NetworkPacketSummary
public NetworkPacketSummary(Duration p_185738_, List<com.mojang.datafixers.util.Pair<NetworkPacketSummary.PacketIdentification, NetworkPacketSummary.PacketCountAndSize>> p_185739_)
-
-
Method Details
-
getCountsPerSecond
public double getCountsPerSecond() -
getSizePerSecond
public double getSizePerSecond() -
getTotalCount
public long getTotalCount() -
getTotalSize
public long getTotalSize() -
largestSizeContributors
public List<com.mojang.datafixers.util.Pair<NetworkPacketSummary.PacketIdentification,NetworkPacketSummary.PacketCountAndSize>> largestSizeContributors()
-