zalk’s stats
Minimal stat tool that logs hardware, TPS, FPS, heap, and player events, so bugs are easier to trace.
介绍
zalk’s stats
A Fabric mod that logs hardware, performance, and player events to the game log, so bugs and performance problems are easier to trace.
What it logs
At startup, once:
- Environment type (client or server) and mod version
- Fabric Loader version
- Java version and VM name
- OS name, version, and architecture
- Available processors
- JVM memory used vs max
- CPU model, physical/logical core count, and a 1-second CPU load sample
- Total and available RAM
The hardware probe runs on a background daemon thread, so the one-second CPU load sample no longer stalls game start-up.
Client only:
- Low-FPS warning when FPS stays at or below your threshold for 10 seconds. Logged once, not spammed.
- Recovery notice once FPS climbs back to your recovery threshold.
- FPS summary (average and minimum) on your chosen interval.
Server only:
- TPS 1m / 5m / 15m on your chosen interval
- JVM heap usage with per-report delta, on a dedicated server
- Player join and disconnect events
- Server start and stop, with uptime
Configuration
Settings live in .minecraft/config/zalks-stats.json and can be edited in-game from the Mod Menu screen. Mod Menu is suggested, not required.
| Setting | Options | Default |
| — | — | — |
| Low-FPS warning threshold | 10-90 FPS | 20 |
| FPS recovery threshold | 10-120 FPS | 30 |
| FPS summary interval | 60, 120, 300, 600, 900 s | 300 |
| TPS interval | 1, 2, 5, 10, 20, 30 s | 5 |
| Heap interval | 60, 120, 300, 600, 900 s | 300 |
| Log toggles | hardware, environment, FPS, TPS, heap, player join/leave, server lifecycle | all on |
Values are clamped on load and save, so a hand-edited or corrupted config can never leave the mod in a nonsensical state. The recovery threshold is always kept above the warning threshold, so the warning cannot immediately re-arm itself.
Requirements
- Minecraft 26.3
- Fabric Loader 0.19.5 or newer
- Java 25 or newer
- Fabric API
- Mod Menu (optional, for the settings screen)
Works on both the client and a dedicated server. Client-only code is not loaded on a server.
Installation
- Install Fabric Loader and Fabric API for Minecraft 26.3.
- Download
zalks-stats-1.4.2.jar. - Put it in your
modsfolder. - Launch the game.
Building
git clone https://github.com/zallkyre/zalks-stats.git
cd zalks-stats
./gradlew build
The built jar appears in build/libs/. Java 25 or newer is required.
License
Released into the public domain. See the LICENSE file.
常见问题
zalk’s stats 支持哪些 Minecraft 版本?
zalk’s stats 支持 Minecraft Java 版 1.21.11–26.3,共 3 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
zalk’s stats 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。
zallkyre 的其他作品
查看全部 →zalks modpack
A lightweight optimization modpack focused on client performance and memory usage. Built for smoother play, and updated as time allows.
zalk’s pumpkins
A resourcepack that refreshes the carved pumpkin overlay with a simpler, cleaner look that suits vanilla-style builds.
zalk’s pumpkins
A resourcepack that refreshes the carved pumpkin overlay with a simpler, cleaner look that suits vanilla-style builds.
评论
登录后评论和评分