Sampler 是一款性能分析工具,用于调查客户端和服务端的任何延迟或相关问题。
在更多文档或图形用户界面(GUI)完成之前,主要面向高级用户,或被模组/整合包作者要求提供调试数据的任何人。
其最重要的功能包括:
- 采样分析器(sampler),用于精确查看 Minecraft 客户端/服务端的时间消耗情况:start、(wait)、stop、export 子命令
- 基于事件的采样触发器,例如仅捕获卡顿峰值:trigger 子命令
- 实际精确的刻率信息:tps 子命令或 F3
- 游戏实体计数以检测异常消耗:counts 子命令,传入维度 ID 时提供更详细信息
- 内存信息与垃圾回收统计:memory 子命令
- 高亮显示方块实体特殊渲染器(可能渲染开销较大的方块):tesr 子命令
- 高亮显示区块更新来源:renderupdates 子命令
- 其他多种子命令,用于调查网络 I/O、区块加载与保存、查找方块/实体等...
本模组设计为空闲时无明显开销,且在分析过程中开销极小。其功能集丰富,建议通过其帮助功能进行探索。
当前用户界面完全由命令驱动,详见
/sampler help
查看所有服务端命令,以及
/csampler help
查看所有客户端命令。
每个命令均遵循以下模式:服务端为 /sampler <subcommand> [<arguments>...],客户端为 /csampler <subcommand> [<arguments>...]。每个子命令的详细帮助可通过 /(c)sampler help <subcommand> 获取。
(标志图表来自一个仍在开发中、目前未公开发布的分析前端)
Sampler is a performance analysis tool to investigate any slowdown or related issue for both client and server.
Until further documentation or the GUI are done the target audience is mostly advanced users or anyone asked to provide debugging data by mod or mod pack authors.
Its most important features are:
- A sampling profiler (sampler) to see exactly where the Minecraft client/server spends its time: start, (wait), stop, export sub-commands
- Event-based sampling triggers, e.g. to capture only lag spikes: trigger sub-command
- Actually precise tickrate information: tps sub-command or F3
- Counts for ticking game objects to notice any excess: counts sub-command, more detailed when invoked with the dimension id
- Memory information and garbage collection statistics: memory sub-command
- Highlights for tile entity special renderers (potentially expensively rendered blocks): tesr sub-command
- Highlights for the sources of chunk updates: renderupdates sub-command
- Various other sub-commands for investigating network I/O, chunk loads, saves, finding blocks/entities, ...
This mod is designed to have no observable overhead while idle and very little overhead during profiling. Its feature set is extensive and best explored using its help functionality.
The user interface is purely command driven at this point, see
/sampler help
for all server-side commands and
/csampler help
for all client-side commands.
Every command is following the pattern /sampler <subcommand> [<arguments>...] for the server side and /csampler <subcommand> [<arguments>...] for the client side. Detailed help for each sub-command is available through /(c)sampler help <subcommand>.
(The logo is a chart from an analysis frontend that is still under development and not publicly available at this time)
评论 0
登录后参与评分
还没有评论,来抢沙发吧