
Modrinth · Minecraft mod
Command Profiler
A mod which profiles commands and functions
Quick answer
Which Command Profiler release matches 26.2-snapshot-7?
Command Profiler 1.2.0+26.2 targets 26.2-snapshot-1, 26.2-snapshot-2, 26.2-snapshot-3 with Fabric. Do not install it on the client. It must be installed on the dedicated server. No extra mods listed for this file.
Where it goes
Is Command Profiler required on the client, server, or both?
Do not install it on the client. It must be installed on the dedicated server.
This file is marked server-only.
What else does Command Profiler 1.2.0+26.2 need?
1.2.0+26.2 on 26.2-snapshot-7. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add Command Profiler without breaking your instance.
Built for Command Profiler 1.2.0+26.2 on 26.2-snapshot-7. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.2.0+26.2. It targets 26.2-snapshot-1, 26.2-snapshot-2, 26.2-snapshot-3 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
Do not install it on the client. It must be installed on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.2.0+26.2. It opens that exact file at the source.
About this project
What does Command Profiler add?
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
- display text in console (subcommands that start with
print) - save as JSON (subcommands that start with
save) - save as bytes (same as
saveexcept you need to providebytesas 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 tocommandall commands will be profiled, and when set tofunctioncommands will not be profiled individuallymacro_commands_as_templates- when set tofalse, commands which have macros will have their arguments inlined into the commandfunction_line_numbers- when set totrue, commands will include their line number, instead of being set to0collect_memory_usage, when set totrue, 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 totrue, 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.
Benchmarking functions
Using /cmdprof benchmark run <name>, you can benchmark a function or a function tag, it might take a while, but after it finishes, it will display the results in chat. You can cancel a currently running benchmark via /cmdprof benchmark cancel. A successful /reload automatically cancels all pending benchmarks. The benchmarked function(s) run in the server command context instead of whoever is running it.
Note: You don't need to have the profiler enabled for benchmarking specifically, you should probably do /cmdprof disable to have a more accurate representation of how fast a function could be. However you might still want to keep the profiler enabled, if you want to dump the results for example.
Project description from Modrinth.
Pick your setup
Command Profiler by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.3-snapshot-9
1 loader build26.3-snapshot-8
1 loader build26.3-snapshot-7
1 loader build26.3-snapshot-6
1 loader build26.3-snapshot-5
1 loader build26.3-snapshot-4
1 loader build26.3-snapshot-3
1 loader build26.3-snapshot-2
1 loader build26.3-snapshot-1
1 loader build26.2-snapshot-8
1 loader build26.2-snapshot-7
1 loader buildShowing the newest 12 of 52 game versions. Older files are in the list below.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Command Profiler versions and loaders
1.2.0+26.2
command-profiler-1.2.0+26.2-fabric.jar
26 Aug 2026
1.1.4+26.2-pre-6
command-profiler-1.1.4+26.2-pre-6-fabric.jar
11 Jun 2026
Looking for an older file? The official Modrinth project page is in Resources.