from Hacker News

GCC Profiler Internals

by fcambus on 5/20/22, 3:32 PM with 13 comments

  • by mhh__ on 5/20/22, 5:07 PM

    1. Might want to mention FDO, even if it doesn't use the gcc-native profiling data.

    2. Do not use instrumenting profilers for measuring code.

  • by flakiness on 5/20/22, 6:55 PM

    Is there anyone still using these instrumentation based profilers (vs sampling profiler like perf)? How is it like today?

    I stopped using it a long time ago since it was so slow and not thread-safe. But I occasionally miss the comprehensive coverage it had. If the situation has changed, I'd love to give it another shot.