- 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.
推薦閱讀
- Node.js Design Patterns
- 精通JavaScript+jQuery:100%動態網頁設計密碼
- Pandas Cookbook
- Python爬蟲開發:從入門到實戰(微課版)
- iOS開發實戰:從零基礎到App Store上架
- 機器人Python青少年編程開發實例
- 小程序,巧運營:微信小程序運營招式大全
- C語言程序設計案例精粹
- Building an RPG with Unity 2018
- JavaScript入門經典
- Angular開發入門與實戰
- Mastering Unity 2D Game Development(Second Edition)
- 區塊鏈架構之美:從比特幣、以太坊、超級賬本看區塊鏈架構設計
- 視窗軟件設計和開發自動化:可視化D++語言
- Python網絡爬蟲實例教程(視頻講解版)