More Profiling

模组

· 作者 settingdust

使用 JFR 分析更多事件

0 本站下载 0 关注 更新于 2 年前

需要前置:Fabric Language Kotlin

最新 0.15.0 · 1.21.3 · Fabric

一键开服(送7天)

欢迎在 GitHub 上提交 Issue 以报告新的事件。

建议搭配以下模组使用:

  • (为特性(Feature)和地表生成(Surface)添加事件追踪)
  • (禁用未使用的资源包条目)
  • (禁用导致卡顿的注册表条目,例如实体等)

特性(Feature)

用于使用 Minecraft 和 Java 捆绑的 JFR 分析器进行启动分析的选项。需在配置文件中启用。默认关闭。
    [09:41:51] [main/INFO] (FabricLoader/MixinExtras|Service) Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.3.5).
    [09:41:52] [main/INFO] (Minecraft) Started flight recorder profiling id(1):name(client-1.20.1-2024-04-22-094152) - will dump to debug\client-2024-04-22-094152.jfr on exit or stop command
    [09:41:58] [main/INFO] (Minecraft) Vanilla bootstrap took 4501 milliseconds
    [09:42:09] [Render thread/INFO] (Minecraft) Total blocking time: 775 ms
    [09:42:11] [Render thread/WARN] (ModernFix) Game took 24.617 seconds to start
    2024-04-22 09:42:11,665 Render thread WARN Error parsing URI D:\Projects\Minecraft\MoreProfiling\mod\.gradle\loom-cache\log4j.xml
    [09:42:11] [Render thread/INFO] (Minecraft) Dumped flight recorder profiling to debug\client-2024-04-22-094152.jfr
    [09:42:11] [Render thread/INFO] (Minecraft) Dumped recording summary to debug\jfr-report-client-2024-04-22-094152.json
    [09:42:11] [Render thread/INFO] (MoreProfiling) Launch profiling finished. Exported to debug\client-2024-04-22-094152.jfr
用于启用数据包和资源包加载时的调试重载器(debug reloader),以便分析数据。**非 JFR**。
[09:42:09] [Render thread/INFO] (Minecraft) LanguageManager [net.minecraft.client.resource.language.LanguageManager] took approximately 65 ms (0 ms preparing, 65 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) TextureManager [net.minecraft.client.texture.TextureManager] took approximately 21992 ms (21992 ms preparing, 0 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) SoundManager [net.minecraft.client.sound.SoundManager] took approximately 3172 ms (3124 ms preparing, 48 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) SplashTextResourceSupplier [net.minecraft.client.resource.SplashTextResourceSupplier] took approximately 2 ms (2 ms preparing, 0 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) FontManager [net.minecraft.client.font.FontManager] took approximately 22460 ms (22299 ms preparing, 161 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) GrassColormapResourceSupplier [net.minecraft.client.resource.GrassColormapResourceSupplier] took approximately 26 ms (24 ms preparing, 2 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) FoliageColormapResourceSupplier [net.minecraft.client.resource.FoliageColormapResourceSupplier] took approximately 24 ms (23 ms preparing, 1 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) BakedModelManager [net.minecraft.client.render.model.BakedModelManager] took approximately 25132 ms (25108 ms preparing, 24 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) EntityModelLoader [net.minecraft.client.render.entity.model.EntityModelLoader] took approximately 140 ms (0 ms preparing, 140 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) BlockEntityRenderDispatcher [net.minecraft.client.render.block.entity.BlockEntityRenderDispatcher] took approximately 32 ms (0 ms preparing, 32 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) BuiltinModelItemRenderer [net.minecraft.client.render.item.BuiltinModelItemRenderer] took approximately 0 ms (0 ms preparing, 0 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) ItemRenderer [net.minecraft.client.render.item.ItemRenderer] took approximately 6 ms (0 ms preparing, 6 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) BlockRenderManager [net.minecraft.client.render.block.BlockRenderManager] took approximately 3 ms (0 ms preparing, 3 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) EntityRenderDispatcher [net.minecraft.client.render.entity.EntityRenderDispatcher] took approximately 191 ms (0 ms preparing, 191 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) Shader Loader [net.minecraft.client.render.GameRenderer$1] took approximately 200 ms (116 ms preparing, 84 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) WorldRenderer [net.minecraft.client.render.WorldRenderer] took approximately 16 ms (0 ms preparing, 16 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) SearchManager [net.minecraft.client.search.SearchManager] took approximately 0 ms (0 ms preparing, 0 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) ParticleManager [net.minecraft.client.particle.ParticleManager] took approximately 302 ms (301 ms preparing, 1 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) PaintingManager [net.minecraft.client.texture.PaintingManager] took approximately 179 ms (179 ms preparing, 0 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) StatusEffectSpriteManager [net.minecraft.client.texture.StatusEffectSpriteManager] took approximately 75 ms (75 ms preparing, 0 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) VideoWarningManager [net.minecraft.client.resource.VideoWarningManager] took approximately 5 ms (4 ms preparing, 1 ms applying)
[09:42:09] [Render thread/INFO] (Minecraft) PeriodicNotificationManager [net.minecraft.client.resource.PeriodicNotificationManager] took approximately 1 ms (1 ms preparing, 0 ms applying)
[09:55:32] [Render thread/INFO] (Minecraft) TagManagerLoader [net.minecraft.registry.tag.TagManagerLoader] 耗时约 519 毫秒(准备阶段 519 毫秒,应用阶段 0 毫秒)
[09:55:32] [Render thread/INFO] (Minecraft) LootManager [net.minecraft.loot.LootManager] 耗时约 340 毫秒(准备阶段 251 毫秒,应用阶段 89 毫秒)
[09:55:32] [Render thread/INFO] (Minecraft) RecipeManager [net.minecraft.recipe.RecipeManager] 耗时约 110 毫秒(准备阶段 83 毫秒,应用阶段 27 毫秒)
[09:55:32] [Render thread/INFO] (Minecraft) FunctionLoader [net.minecraft.server.function.FunctionLoader] 耗时约 18 毫秒(准备阶段 18 毫秒,应用阶段 0 毫秒)
[09:55:32] [Render thread/INFO] (Minecraft) ServerAdvancementLoader [net.minecraft.server.ServerAdvancementLoader] 耗时约 198 毫秒(准备阶段 87 毫秒,应用阶段 111 毫秒)
转储资源重载性能分析数据的选项。需要通过上述选项启用调试模式的重载器。

img.png

世界加载性能分析的选项。
[09:55:34] [Server thread/INFO] (Minecraft) Starting integrated minecraft server version 1.20.1
[09:55:34] [Server thread/INFO] (Minecraft) Generating keypair
[09:55:34] [Server thread/INFO] (Minecraft) Started flight recorder profiling id(2):name(client-1.20.1-2024-04-22-095534) - will dump to debug\client-2024-04-22-095534.jfr on exit or stop command
[09:55:37] [Server thread/INFO] (Minecraft) Preparing start region for dimension minecraft:overworld
[09:55:37] [Render thread/INFO] (Minecraft) Time elapsed: 114 ms
[09:55:37] [Server thread/INFO] (Minecraft) Dumped flight recorder profiling to debug\client-2024-04-22-095534.jfr
[09:55:37] [Server thread/INFO] (Minecraft) Dumped recording summary to debug\jfr-report-client-2024-04-22-095534.json
[09:55:37] [Server thread/INFO] (MoreProfiling) World loading profiling finished. Exported to debug\client-2024-04-22-095534.jfr
[09:55:37] [Server thread/INFO] (Minecraft) Changing view distance to 12, from 10
[09:55:37] [Server thread/INFO] (Minecraft) Changing simulation distance to 12, from 0
[09:55:39] [Server thread/INFO] (Minecraft) Player378[local:E:8feacf15] logged in with entity id 1 at (-165.5, 76.0, -50.5)
  • 用于抑制性能分析日志中性能分析信息 JSON 输出的选项。
将 Minecraft 性能分析器重定向到 JFR 事件的选项。

img_1.png img_2.png

  • 资源重载时的性能分析选项
添加资源重载性能分析事件的选项

支持 CIT Resewn 事件

img_3.png img_4.png

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源