OnGUI() Resources

I was wondering if there is a way to see how much resources are being used to process the OnGUI() methods?
For example how many milliseconds it takes to execute all of the OnGUI() methods together, and also how many times it gets called per frame.
I know I can make this with a simple counter variable in a script ut I was wondering if Unity had anything built in?

You can surround your own code with Profiler.BeginSample and Profiler.EndSample (if your scripts are in an assembly, its a bit problematic, but it can be done).

If you put these tags within OnGUI called code, then you get nested entries in the Unity Pro Profiler.

Profiler API