https://github.com/gperftools/gperftools

gprof - not supported on clang with OSx version over 10.9

clang - clang support its own profiling.

Clang Compiler User’s Manual — Clang 19.0.0git documentation