SGUProfiler 在服务器刻(tick)中对每个实体的工作进行采样(包括 AI、实体更新、移动/传送、碰撞等)。当存在 Carpet 时,你还可以将假玩家的时间拆分为攻击、使用以及其他 ActionPack 分类。报告通过 Carpet 的 Messenger 样式打印在聊天栏中(安装 Carpet 以获得预期的颜色;核心 profiling 功能无需 Carpet 也可运行)。
为什么使用它
- 找出在你控制的窗口期内,哪个维度中的哪些实体主导了刻时间。
- 提供可选的维度过滤器和针对 Carpet 玩家的仅机器人模式。
- 可在
config/sguprofiler.json 中配置自动 MSPT、计划分析、采样步长/重刻模式以及噪声底限。
依赖要求
- Minecraft: 1.21.1、1.21.4、1.21.6–1.21.11(含 1.21.10)——请使用与你的游戏版本匹配的
sguprofiler-<version>+mc<YOUR_MC>.jar 文件。
- Java 21+
- Fabric Loader(≥ 0.16.0;请参阅项目元数据)
- 对应 MC 版本的 Fabric API
可选: Carpet ——用于 profile … bot 命令以及攻击/使用拆分;请使用与你 MC 版本兼容的 Carpet 构建版。
快速入门
- 安装 Fabric + Fabric API(需匹配 MC 版本)。
- 将正确的
+mc… jar 文件放入 mods/ 目录。
- 你必须是原版操作员(operator),或者被列入
config/sguprofiler_command_whitelist.json 白名单中(由 OP / 高权限控制台管理)。
- 在游戏中(根命令区分大小写):
/SGUProfiler profile start — 完整分析
/SGUProfiler profile start overworld / nether / end / all — 按维度过滤
/SGUProfiler profile start bot — 仅限 Carpet 假玩家动作(需安装 Carpet)
/SGUProfiler profile stop — 停止并打印报告
报告中的数字是每个桶(bucket)每采样刻的毫秒数——这与 F3 显示的整服 MSPT 不同;请勿将行总和视为“服务器 MSPT”。
链接
- 源码 / 问题反馈:
- Carpet:
- Fabric API:
许可证: MIT
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
- Install Fabric + Fabric API (matching MC).
- Drop the correct
+mc… jar in mods/.
- You must be a vanilla operator, or be listed in
config/sguprofiler_command_whitelist.json (managed by OP / high-permission console).
- 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:
- Carpet:
- Fabric API:
License: MIT
评论 0
登录后参与评分
还没有评论,来抢沙发吧