
Sampler
Sampler is a performance analysis tool designed to diagnose any slowdowns and related issues on both client and server sides.
Currently, while the graphical interface and documentation are still under development, the mod is primarily aimed at experienced users or those who may be asked by mod or modpack developers to provide debugging data.
Key Features:
- Sampling profiler - allows precise identification of where the Minecraft client or server spends time: start, (wait), stop, export commands
- Event-based triggers - for example, to capture only lag spikes: trigger command
- Precise tickrate information - tps command or F3 display
- Game object counting - detection of excessive ticking objects: counts command, more detailed information when specifying dimension ID
- Memory information and garbage collection statistics - memory command
- Block special renderer highlighting - identification of potentially expensive rendering blocks: tesr command
- Chunk update sources - highlighting causes of chunk redrawing: renderupdates command
- Additional commands for analyzing network I/O, chunk loading, saves, finding blocks and entities
The mod is designed to have no noticeable load in idle mode and minimal performance impact during profiling. The functionality is extensive and best explored through the built-in help system.
Management Interface:
Currently, control is performed exclusively through commands:
- For server side:
/sampler help
- For client side:
/csampler help
All commands follow the pattern /sampler <subcommand> [<arguments>...]
for server and /csampler <subcommand> [<arguments>...]
for client. Detailed help for each subcommand is available through /(c)sampler help <subcommand>
.