There used to be an optional Xcode tool for profiling OpenGL.
You could download it as "Graphics Tools for Xcode."
Unfortunately, the last release for that was in 2015, for XCode 7.2
Have OpenGL graphic tools been deprecated, and only Metal tools are available now?