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

Deep Profile

Ordinary profiling will only record the time and memory allocations made by the common Unity callback methods, such as Awake(), Start(), Update()and FixedUpdate(). Enabling the Deep Profile option re-compiles our scripts with 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 re-compiled 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 is not providing enough detail to figure out the root cause, or if we’re testing 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 in the upcoming section titled Targeted profiling of code segments.

主站蜘蛛池模板: 乐昌市| 永寿县| 泸西县| 如皋市| 平远县| 建阳市| 呼和浩特市| 南宁市| 曲周县| 特克斯县| 曲沃县| 彭阳县| 田东县| 横峰县| 巴彦县| 桐梓县| 林口县| 宜宾县| 定远县| 新邵县| 扶余县| 九龙坡区| 西青区| 都昌县| 瑞丽市| 离岛区| 襄垣县| 原平市| 蓝山县| 靖宇县| 泰和县| 公安县| 毕节市| 隆安县| 炎陵县| 吴川市| 桓台县| 孙吴县| 丽水市| 临猗县| 尚义县|