Command Profiler

Command Profiler

A mod which profiles commands and functions

by
324 Downloads
fabricmanagementoptimizationutility
Rent Server with this Mod

About this Mod

Command Profiler is a mod which lets you profile commands and functions using /cmdprof.

Using the profiler

You can start the profiler if you have operator privileges using the /cmdprof enable command. For the profiler to stop collecting data do /cmdprof disable, and to reset the current profiled data do /cmdprof reset.

Viewing profiler results

There are three different formats for taking the data

  1. display text in console (subcommands that start with print)
  2. save as JSON (subcommands that start with save)
  3. save as bytes (same as save except you need to provide bytes as an argument)

This does mean that you need access to the server console to view the profiler results.

There are print and save subcommands for viewing the profiler results over the entire duration of the profiler running. (print is sorted by total time taken)

And there are print_trace and save_trace subcommands for viewing the profiler results over the last captured tick. (ordered by execution)

Configuring the profiler

You can configure the profiler using the /cmdprof config subcommand, there are currently 4 options:

  • granularity - when set to command all commands will be profiled, and when set to function commands will not be profiled individually
  • macro_commands_as_templates - when set to false, commands which have macros will have their arguments inlined into the command
  • function_line_numbers - when set to true, commands will include their line number, instead of being set to 0
  • collect_memory_usage, when set to true, all events will track the memory usage (this reduces the performance by quite a bit, not worth using it unless you're trying to make a mod which fixes memory usage issues)
  • macro_function_instantiation_events, when set to true, profiler results will include how long it takes to instantiate a macro function as a separate step, instead of merging it with the command that executes the instantiation

Viewing data online

You can open the profiler online using /cmdprof online view, and stop it using /cmdprof online stop. Note that you need to enable the profiler using /cmdprof enable first, otherwise there will be no data provided.

The profiler automatically refreshes data every second when it is running.

Available Versions

Command Profiler 1.1.4release
MC 26.2-snapshot-1, 26.2-snapshot-2, 26.2-snapshot-3, 26.2-snapshot-4, 26.2-snapshot-5, 26.2-snapshot-6, 26.2-snapshot-7, 26.2-snapshot-8, 26.2-pre-1, 26.2-pre-2, 26.2-pre-3, 26.2-pre-4, 26.2-pre-5, 26.2-pre-6, 26.2-rc-1fabric
June 11, 2026
Command Profiler 1.1.4release
MC 26.1, 26.1.1, 26.1.2fabric
June 11, 2026
Command Profiler 1.1.4release
MC 26.1-snapshot-1, 26.1-snapshot-2, 26.1-snapshot-3, 26.1-snapshot-4, 26.1-snapshot-5, 26.1-snapshot-6, 26.1-snapshot-7, 26.1-snapshot-8, 26.1-snapshot-9, 26.1-snapshot-10, 26.1-snapshot-11, 26.1-pre-1, 26.1-pre-2, 26.1-pre-3, 26.1-rc-1, 26.1-rc-2, 26.1-rc-3fabric
January 19, 2026
Command Profiler 1.1.4release
MC 1.21.11fabric
January 19, 2026
Command Profiler 1.1.4release
MC 1.21.9, 1.21.10fabric
January 19, 2026

How to Install Command Profiler on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (26.2-rc-1).

3

Install Mod

Open the mod browser in the dashboard and search for "Command Profiler". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

26.2-rc-1, 26.2-pre-6, 26.2-pre-5 (+35 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Command Profiler server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.2-rc-1). You can switch loaders with one click in the panel.

Is Command Profiler compatible with fabric?

Command Profiler officially supports fabric for Minecraft 26.2-rc-1, 26.2-pre-6, 26.2-pre-5. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Command Profiler – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Command Profiler consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Command Profiler with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU Lesser General Public License v3.0 only
Server-side
Required

Supported Versions

26.2-rc-126.2-pre-626.2-pre-526.2-pre-426.2-pre-326.2-pre-226.2-pre-126.2-snapshot-826.2-snapshot-726.2-snapshot-6+28 more