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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I received a good answer on the Clang mailing list. To summarize, the use of Google Performance Tools was the best fit.