Hello,
I’m currently discovering the profiler, and following the “Profile and Optimize the Unity Application” from the Professional Training platform.
I struggle a little to understand the logic behind the profiler graph. I only look at CPU usage, and I only show the “Others” category. Doing this, I still see 2 colours on the graph:
So, both colours are associated to this single “Others” category, is this expected? If so, how can it be interpreted? (why the 2 colours?)
Thanks a lot,
Arnaud
Yes, that is expected. It is highlighting the partial contribution to that category by the the selected sample stack across the frames.
If you dig deeper into the Player Loop, as you select samples in the Tree View, it’ll shift the highlight, allowing you to triangulate where exactly that “Other” time usage is coming from (possibly time spend on Debug.Log calls)
That also means that most of the time categorized as Other is in that category because that’s the category used for the Editor Loop. If you switched your target from Playmode to Editor, it’ll break that up into more detail and also change it’s category based on those more detailed sample stacks.
The category charts are effectively a summary of what you’d see as a 2 dimensionsional entity living in the TimeLine view at the bottom of the main thread and looking up. I.e. every sample has a category and its exclusive time (time in which no other child sample is recorded) contributes towards that category in the chart.