needle-tools / selective-profiling

Selectively deep profile single methods while your game is running in Unity's Profiler 🔬
135 stars 11 forks source link

Profile methods calls per instance or within a certain block #4

Closed marwie closed 3 years ago

marwie commented 3 years ago

Might be possible if user sets some flag before methods are called and injection checks that flag before calling samples. But this would require branching in injected samples and therefore make injections more complex.

This info MIGHT also be available via profiler API image

marwie commented 3 years ago

https://github.com/needle-tools/selective-profiling/issues/15