/debug
Starts or stops a debug profiling session, or profiles a specific function. Generates a profiling report in the debug folder.
Syntax
/debug <start|stop|function> [<function>]Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| action | literal | Required | start = begin profiling; stop = end profiling and save report; function = profile a specific function. |
| function | resource | Optional | The function to profile (only for 'function' action). |
Examples
/debug startStarts a server profiling session.
/debug stopStops profiling and saves the report to the debug folder.
/debug function my_pack:heavy_functionProfiles a specific function and outputs performance data.
Common Mistakes
- Running /debug start without /debug stop, the profiling session continues until stopped, collecting data indefinitely.
- Expecting real-time output, the report is saved as a file after stopping.
Notes
Profiling reports are saved in the 'debug' folder within the world directory. The report includes tick timing, entity counts, and other performance data. Useful for identifying lag sources.
Related Commands
Need a Minecraft server?
Try these commands on Astroworld or host your own server.
Try Astroworld Hosting