Commands/debug

Starts or stops a debugging session. While active, includes notifications about potential performance bottlenecks in the console. When stopped, creates a profiler results file in the folder "debug".

Syntax

 * Starts a new debug time profiler session.


 * Stops the active debug time profiler session.


 * Used the same way as /function.

Function trace
When using, a txt file titled debug-trace-yyyy-MM-dd_HH.mm.ss.txt is created.

In this file,
 * means the  is executed.
 * means a message is returned.
 * means a failure message is returned.
 * means the  returns a brigadier return value.
 * means the  is executed and returns a brigadier return value.
 * means a function is called.

For most of commands, the brigadier return value is equal to the result value that can be stored with.

But for  with one or more of the following subcommands, the brigadier return value is the number of times that the   is executed successfully:
 * chunks.csv: Contains a list of chunk information in the format.
 * entities.csv: Contains a list of entities in the world in the format.
 * example_crash.txt: An example crash file.
 * stats.txt: Contains some stats.
 * classpath.txt: Contains the file paths of the external jars Minecraft uses.
 * example_crash.txt: An example crash file.
 * gamerules.txt: A plain text file containing a list of game rules and their values.
 * stats.txt: Contains some stats.
 * threads.txt: All running threads.
 * example_crash.txt: An example crash file.
 * stats.txt: Contains some stats.
 * classpath.txt: Contains the file paths of the external jars Minecraft uses.
 * example_crash.txt: An example crash file.
 * gamerules.txt: A plain text file containing a list of game rules and their values.
 * stats.txt: Contains some stats.
 * threads.txt: All running threads.

History
Befehl/debug Comandos/debug 命令/debug