- 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.
推薦閱讀
- Boost.Asio C++ Network Programming(Second Edition)
- MATLAB應用與實驗教程
- Podman實戰
- Building Mapping Applications with QGIS
- Mastering Python High Performance
- Java Web開發技術教程
- FLL+WRO樂高機器人競賽教程:機械、巡線與PID
- Oracle從入門到精通(第5版)
- 快人一步:系統性能提高之道
- Swift語言實戰精講
- 寫給程序員的Python教程
- Learning Nessus for Penetration Testing
- Akka入門與實踐
- Learning Puppet Security
- WebGIS之Leaflet全面解析