Class PerfCommand

java.lang.Object
net.minecraft.server.commands.PerfCommand

public class PerfCommand extends Object
  • 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

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher)
    • startProfilingDedicatedServer

      private static int startProfilingDedicatedServer(CommandSourceStack source) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • stopProfilingDedicatedServer

      private static int stopProfilingDedicatedServer(CommandSourceStack source) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • saveResults

      private static void saveResults(CommandSourceStack source, Path path, MinecraftServer server)
    • whenStopped

      private static void whenStopped(CommandSourceStack source, ProfileResults results)