跳到正文

SGUProfiler

作者:MiYui34

Server-side Fabric mod: sample per-entity tick work

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

SGUProfiler samples per-entity work on the server tick (AI, entity tick, movement/teleport, collisions, and more). When Carpet is present, you can also split fake-player time into Attack, Use, and other ActionPack buckets. Reports are printed in chat using Carpet’s Messenger styling (install Carpet for the intended colors; core profiling still runs without it).


Why use it

  • Find which entities in which dimension dominate tick time during a window you control.
  • Optional dimension filters and bot-only mode for Carpet players.
  • Configurable auto MSPT, scheduled profiles, sampling stride / heavy-tick modes, and noise floor in config/sguprofiler.json.

Requirements

  • Minecraft: 1.21.1, 1.21.4, 1.21.6–1.21.11 (incl. 1.21.10) — use the file sguprofiler-<version>+mc<YOUR_MC>.jar that matches your game.
  • Java 21+
  • Fabric Loader (≥ 0.16.0; see project metadata)
  • Fabric API for your MC version

Optional: Carpet — needed for profile … bot and Attack/Use splits; use a Carpet build compatible with your MC.


Quick start

  1. Install Fabric + Fabric API (matching MC).
  2. Drop the correct +mc… jar in mods/.
  3. You must be a vanilla operator, or be listed in config/sguprofiler_command_whitelist.json (managed by OP / high-permission console).
  4. In-game (root literal is case-sensitive):
  • /SGUProfiler profile start — full profile
  • /SGUProfiler profile start overworld / nether / end / all — dimension filter
  • /SGUProfiler profile start bot — Carpet fake-player actions only (with Carpet)
  • /SGUProfiler profile stop — stop and print report

Report numbers are ms per sampled tick for each bucket — not the same thing as whole-server MSPT from F3; don’t treat row sums as “the server MSPT”.


Links

  • Source / issues: https://github.com/MiYui34/SGUprofiler/issues
  • Carpet: https://modrinth.com/mod/carpet
  • Fabric API: https://modrinth.com/mod/fabric-api

License: MIT

常见问题

SGUProfiler 支持哪些 Minecraft 版本?

SGUProfiler 支持 Minecraft Java 版 1.21.1–1.21.11,共 8 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

SGUProfiler 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分