The profiler in unit has one great feature - Deep Profile. Due to the higher cost of resources, it allows you to track the load up to the function in the script. Unfortunately, when I run a project on an Android device, even with the Deep Profile button pressed, the profiler displays the results of a regular profile, not a dip, without specifying an exact script or function. I understand that this is a big load for the smartphone, but, perhaps, how can you enable the Deep profile not only in the editor?
1 answer
In the instructions to Profiler , it is written that you just need to connect the profiler, and then transfer it to the "deep profiling" mode. The same instruction says that in some cases this function may not be available at all due to the complexity of the code.
It is also advised to engage in manual refactoring, which will help you methods Profiler.BeginSample and Profiler.EndSample . With their help, you can find out how much time is spent on specific operations and give them the names under which they will appear in the profiler.
|