Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alternative to -pg with Clang?

I wish to profile CPU (sample if possible), with as small a performance impact as possible (hence similar to GCC's -pg), binaries compiled with Clang. Is there an alternative that uses instrumentation of the code, or produces output similar to gprof?

like image 973
Matt Joiner Avatar asked Sep 05 '25 01:09

Matt Joiner


1 Answers

I received a good answer on the Clang mailing list. To summarize, the use of Google Performance Tools was the best fit.

like image 177
Matt Joiner Avatar answered Sep 07 '25 00:09

Matt Joiner