- Unity Game Optimization
- Dr. Davide Aversa Chris Dickinson
- 131字
- 2021-06-24 12:12:56
Allocation Callstack
By activating the Allocation Callstack option, Unity Profiler will collect more info about the game's memory allocations without requiring Deep Profile:

If the option is enabled, you can click on the red boxes representing memory allocations and Profiler will show you the origin and the cause of that memory allocation:

In Hierarchy view, instead, you still need to select an allocation call. Then, you need to switch to Show Related Objects in the drop-down menu in the upper-right corner and then select one of the N/A objects. After that, you'll see Callstack info in the box underneath.
We will talk more about memory allocations in Chapter 8, Masterful Memory Management.
At the time of writing, in Unity 2019.1, Allocation Callstack works only when profiling in the Editor.
推薦閱讀
- Linux C/C++服務器開發實踐
- NumPy Essentials
- 深入淺出Android Jetpack
- Mastering AndEngine Game Development
- 零基礎學Python網絡爬蟲案例實戰全流程詳解(入門與提高篇)
- Learning OpenStack Networking(Neutron)(Second Edition)
- AIRIOT物聯網平臺開發框架應用與實戰
- Learning Continuous Integration with TeamCity
- Java SE實踐教程
- UML軟件建模
- 大學計算機應用基礎(Windows 7+Office 2010)(IC3)
- Scrapy網絡爬蟲實戰
- Java 9 with JShell
- Java高手是怎樣煉成的:原理、方法與實踐
- Android智能手機APP界面設計實戰教程