找回密码
 立即注册
查看: 288|回复: 0

unity 性能分析工具

[复制链接]
发表于 2022-12-16 15:44 | 显示全部楼层 |阅读模式
内存分析工具

Memory Profiler | Memory Profiler | 1.0.0
不同引擎版本适配不同版本的安装包https://docs.unity.cn/2020.3/Documentation/Manual/com.unity.memoryprofiler.html
早期版本的filters、dif等功能可以直接看具体某个物体的内存占用,新版本在Objects and Allocations里
其他版本的官方安装方式行不通,可以在Windows-Package Manager-Memory Profiler里点击See other versions
Filters-Diff-Group-Same/Deleted in B/New in B。。对比内存变化,但是Untracked Memory没法跟踪

Untracked Memory

There are the following gaps in memory tracking that contribute to the amount of Untracked Memory:
- Native Plug-in allocations
- The size of Executable and DLLs on some platforms
- Virtual Machine memory used by IL2CPP
- Application Stack memory
- Memory allocated using Marshal.AllocHGlobal
- Native memory allocated by a Unity subsystems that is not tracked correctly due to a bug
You can consult the Known Limitations section of the Documentation of Memory Profiler Package's latest version for an updated list/package manager-view changelog
To analyze this memory further, you will need to use a platform specific profiler.

内存跟踪中存在以下差距,这些差距会导致未跟踪内存量:
- 原生插件分配
- 某些平台上可执行文件和DLL的大小
- IL2CPP 使用的虚拟机内存
- 应用程序堆栈内存
- 使用 Marshal.AllocHGlobal 分配的内存
- 由 Unity 子系统分配的本机内存,由于错误而无法正确跟踪
您可以查阅内存性能分析器软件包最新版本文档的已知限制部分,以获取更新列表。
若要进一步分析此内存,需要使用特定于平台的探查器。
懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Unity开发者联盟 ( 粤ICP备20003399号 )

GMT+8, 2024-5-13 22:14 , Processed in 0.088947 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表