Alternative to -pg with Clang?

前端 未结 2 1725
遥遥无期
遥遥无期 2020-12-29 23:28

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

相关标签:
2条回答
  • 2020-12-30 00:07

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

    0 讨论(0)
  • 2020-12-30 00:09

    https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-pg

    now clang already support "-pg"

    0 讨论(0)
提交回复
热议问题