diff --git a/projects/rocprofiler-systems/source/lib/rocprof-sys/library/cpu_freq.cpp b/projects/rocprofiler-systems/source/lib/rocprof-sys/library/cpu_freq.cpp index 0c09375599..68c170af90 100644 --- a/projects/rocprofiler-systems/source/lib/rocprof-sys/library/cpu_freq.cpp +++ b/projects/rocprofiler-systems/source/lib/rocprof-sys/library/cpu_freq.cpp @@ -254,6 +254,8 @@ config() void sample() { + if(get_state() >= State::Finalized) return; + auto _timestamp = tim::get_clock_real_now(); auto _rcache = tim::rusage_cache{ RUSAGE_SELF };