Question by
yugu · May 10, 2018 at 10:31 PM ·
profilerdocumentationprofiling
how to profile a method in a static class & please provide detailed explanation on profiler APIs
Questions are multi fold: 1. I have search for days and could not find any detailed explanation of how the profiler works in unity. Nor could I find any explicit examples of profiler APIs online. Please, Unity developers, provide a detailed explanation of how: profiler/sampler/recorder works
the documentation you have is very simple and does not contain much details on the underlying logic of the function most of the time.
To sum up:
The feature I want is to: profile arbitrary code blocks and put them in the same sampler under hierarchy view
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612162421im_/https://answers.unity.com/themes/thub/images/avi.jpg)