User-Defined "Performance Critical Context"?

Is there a way to declare "performance critical context" on an arbitrary method using attributes or comments? I have some frequently-invoked methods (nearly every frame) which I'd like to annotate in the same way as the Unity plugin does for Update().

2 comments
Comment actions Permalink

Hello,
Yes, there are attributes [PerformanceCharacteristicsHintAttribute] and [FrequentlyCalledMethodAttribute], example is on the screenshot. Let me know if you have other questions.

0
Comment actions Permalink

Olga, that seems exactly what I was referring to. Thank you very much. Cheers

0

Please sign in to leave a comment.