Unity杂谈-systemallocator参数

今天在看Google中国在B站的一个视频<Android 内存工具与实践指南>时发现了一个Unity的隐藏功能.
在Unity 2017.3.0发布时, 更新记录中提到:

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.

这个参数可以使用系统的内存分配, 关闭引擎的内存分配.

视频中给了一个在Android上的使用方法:

为什么说这是一个隐藏功能, 因为除了在Unity 2017.3的更新说明中提了一下之外, 在其他任何地方都几乎搜索不到信息, 包括CommandLineArguments的文档.

要说这个功能有什么用的话, 可以参考这篇文章: 工作记录-记一次UNITY BUG的定位

原文地址:https://www.cnblogs.com/yusjoel/p/13403457.html