Commands/perf

Captures information and metrics about the game for ten seconds.

Note that this command can only executed in dedicated server, use in client to run performance profiler.

Syntax

 * Starts a recording for 10 seconds performance profiling such as tick durations, used heap sizes and other more detailed stats.
 * Ends the recording early before the 10-second limit.
 * Ends the recording early before the 10-second limit.
 * Ends the recording early before the 10-second limit.

File structure
When perf profiling session is stopped, a ZIP file is created in .minecraft/debug/profiling with the following structure:
 * yyyy-MM-dd_HH.mm.ss- - .zip
 * system.txt
 * server
 * deviations
 * ticktime
 *  @yyyy-MM-dd_HH.mm.ss.SSS.txt
 * levels
 * block_entities.csv: Contains a list of block entities in the world in the format.
 * chunks.csv: Contains a list of chunk information in the format.
 * entities.csv: Contains a list of entities in the world in the format.
 * entity_chunks.csv: Contains a list of loaded chunks in the dimension in the format.
 * example_crash.txt: An example crash file.
 * stats.txt: Contains some stats.
 * metrics
 * cpu.csv
 * event_loops.csv
 * jvm.csv
 * mailboxes.csv
 * ticking.csv
 * classpath.txt: Contains the file paths of the external jars Minecraft uses.
 * gamerules.txt: A plain text file containing a list of game rules and their values.
 * modules.txt: Contains the external modules jars Minecraft uses.
 * profiling.txt: The profiler results.
 * server.properties.txt: Current server.properties.
 * stats.txt: Contains some stats.
 * threads.txt: All running threads.
 * stats.txt: Contains some stats.
 * threads.txt: All running threads.

History
Befehl/perf コマンド/perf 命令/perf