VContainer icon indicating copy to clipboard operation
VContainer copied to clipboard

Entry Points don't appear in the Unity Profiler.

Open SimonNordon4 opened this issue 2 years ago • 3 comments

When using the unity profiler you wont see a breakdown of your entry points using ITickable etc. Just the player loop dispatcher Invoke call.

Makes using entry points very risky.

SimonNordon4 avatar Apr 16 '23 00:04 SimonNordon4

Solved by using Deep Profiler.

SimonNordon4 avatar Apr 18 '23 00:04 SimonNordon4

@SimonNordon4 Is EntryPoint less visible in the profiler than MonoBehaviour.Update?

I think it should be at least as profiled as MonoBehaviour.

hadashiA avatar Apr 18 '23 02:04 hadashiA

image

Normal Profiler is only showing me UpdateFunction, there's some complicated boids behaviour occuring within that.

image

Monobehaviour is showing more details.

image

With deep profile on. It might be expected behavior I'm not sure. I guess the benefit is being able to see which EntryPoints are using resources. Although I'm going to stop using entry points for 'monobehaviour' logic.

SimonNordon4 avatar Apr 18 '23 03:04 SimonNordon4