Package net.minecraft.server.commands
Class PerfCommand
java.lang.Object
net.minecraft.server.commands.PerfCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher) private static voidsaveResults(CommandSourceStack pSource, Path pPath, MinecraftServer pServer) private static intprivate static intprivate static voidwhenStopped(CommandSourceStack pSource, ProfileResults pResults)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
ERROR_NOT_RUNNING
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_RUNNING -
ERROR_ALREADY_RUNNING
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_ALREADY_RUNNING
-
-
Constructor Details
-
PerfCommand
public PerfCommand()
-
-
Method Details
-
register
-
startProfilingDedicatedServer
private static int startProfilingDedicatedServer(CommandSourceStack pSource) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
stopProfilingDedicatedServer
private static int stopProfilingDedicatedServer(CommandSourceStack pSource) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
saveResults
-
whenStopped
-