We have been using perf to try and understand how a c++ linux proces has been doing as well as how it has changed when exposed to profile guided optimizations.
We use it to capture things like CPU utilization, also PMU counters like ipc, branch-mpki etc.
Does capturing/sampling these performance counters/events slow down execution or effect performance in any meaningful way?
We have been gathering benchmark results, while also capturing these performance counters/events. Is this advisable?