今天在看Google中国在B站的一个视频<Android 内存工具与实践指南>时发现了一个Unity的隐藏功能.
在Unity 2017.3.0发布时, 更新记录中提到:ide
Kernel: Added new argument
-systemallocator
. This disables Engine management of allocations, and instead uses system allocations. This is useful when using external tools for memory debugging.工具
这个参数可使用系统的内存分配, 关闭引擎的内存分配.post
视频中给了一个在Android上的使用方法:spa
为何说这是一个隐藏功能, 由于除了在Unity 2017.3的更新说明中提了一下以外, 在其余任何地方都几乎搜索不到信息, 包括CommandLineArguments的文档.
要说这个功能有什么用的话, 能够参考这篇文章: 工做记录-记一次UNITY BUG的定位
debug