官术网_书友最值得收藏!

Deep Profile

Ordinary profiling will only record the time and memory allocations made by common Unity callback methods, such as Awake(), Start(), Update()and FixedUpdate(). Enabling the Deep Profile option recompiles our scripts with a much deeper level of instrumentation, allowing it to measure each and every invoked method. This causes a significantly greater instrumentation cost during runtime than normal, and uses substantially more memory since data is being collected for the entire callstack at runtime. As a consequence, deep profiling may not even be possible in large projects, as Unity may run out of memory before testing even begins, or the application may run so slowly as to make the test pointless.

Note that toggling Deep Profile requires the entire project to be completely recompiled before profiling can begin again, so it is best to avoid toggling the option back and forth between tests.

Since this option blindly measures the entire callstack, it would be unwise to keep it enabled during most of our profiling tests. This option is best reserved for when default profiling does not provide sufficient detail to figure out the root cause, or if we're testing the performance of a small test scene, which we're using to isolate certain activities.

If deep profiling is required for larger projects and scenes, but the Deep Profile option is too much of a hindrance during runtime, then there are alternative approaches that can be used to perform more detailed profiling; see the upcoming section entitled Targeted profiling of code segments.

主站蜘蛛池模板: 库尔勒市| 宝坻区| 尼勒克县| 台安县| 黄平县| 香格里拉县| 伊金霍洛旗| 乌审旗| 特克斯县| 陕西省| 道孚县| 呼伦贝尔市| 阿克苏市| 灵璧县| 日照市| 黄梅县| 江川县| 察雅县| 淮阳县| 清流县| 伊吾县| 察雅县| 噶尔县| 静乐县| 建德市| 长顺县| 加查县| 都匀市| 阳东县| 京山县| 义乌市| 滕州市| 湘潭市| 泰宁县| 桦南县| 科技| 仲巴县| 黄冈市| 鹤岗市| 新密市| 定结县|