Add additional Profiler blocks to the Unity Profiler

Is there a way to add additional profiler blocks to the unity profiler? For example, plot amount of AI path calculations per frame, similar to the rendering profiler?

EDIT:
I am interested in how to add profiler areas like the already existing ones in unity, as listed in the “Profiling.ProfilerArea” enumeration. I am not referring to Profiler.begin/endsample which adds cpu sample blocks, this is not what i am interested in.

I’d say you can do that using the Profiler class.

What are you referring too specifically? I’m not sure how i would accomplish that.

I am interested in how to add profiler blocks like the already existing ones in unity, as listed in the “Profiling.ProfilerArea” enumeration. I suspect you are referring to Profiler.begin/endsample which adds cpu sample blocks, which is not what i am interested in.

Yes, that is how I read your question and this is what Unity offers in terms of custom profiler blocks.

Adding to the enumeration itself is not an option. And even if you could, nothing would be profiled.