CLion CMake Auto‑Reload Interaction with Profiling Runs for Bottleneck Measurement
0 reputation · 15 Aug 2022, 07:10 UTC
Goal: obtain reliable bottleneck measurements before applying optimizations using CLion's integrated profiler while leveraging the CMake build system.
Constraints: the IDE’s auto‑reload feature may trigger full rebuilds when CMakeLists.txt changes, which can skew timing measurements; disabling auto‑reload avoids those rebuilds but raises uncertainty about when and how the symbol index is refreshed after a manual reload.
Does disabling auto-reload and manually reloading after a profiling run preserve up-to-date symbol indexes without causing a full rebuild? How can one ensure the profiler runs against the exact binary used for indexing when auto-reload is off? Are there recommended settings to balance measurement fidelity with IDE responsiveness?