Script profiler UI lacking detail


As shown in the image they don’t add up to 11%, data is missing

Hello!

You need to add the ‘self’ time of the function itself which is 11.324% in the second column.
That is the time the function itself took, without time it too to call all those other functions inside.

But how do I know what contributes to the 11%?

Unfortunately, the data means that 11.324% out of 11.937% is taken by the function in MainModule:340 without details on which exact lines are taking most of the time.
If the function is large, you can try breaking it up a bit to see what section takes the most.

While we want to introduce source code display with specific function parts highlighted in the future, I cannot promise when that might be implemented.

Well doesn’t that beat the purpose of the script profiler? If the main issues remain hidden?

No, that doesn’t beat the purpose of it, Script Profiler shows which functions take time.

Well it’s not as helpful as it can be if most of the critical information remains hidden. Some functions can be long and debugging would be extremely hard in these cases, especially pinpointing what’s actually taking time in the function. Even in smaller functions you can have trouble getting to the root of things. If I’m having trouble with it imagine what a new developer has to go through