SWDEV-510089 Fix rocprof segfaulting on ctrl+c (#94)

Change-Id: Iaa0f3856bb8fed174cbc935b85739414ecd44758

Signed-off-by: adapryor <Adam.pryor@amd.com>

[ROCm/rdc commit: 0ae4404a09]
这个提交包含在:
Pryor, Adam 编写, GitHub 于 2025-01-21 10:30:31 -06:00 提交
1 父节点 7267692f1b
当前提交 9f1f502d93
1 个文件已更改
+1 -1
@@ -100,7 +100,7 @@ CounterSampler::CounterSampler(rocprofiler_agent_id_t agent) : agent_(agent) {
"Could not setup buffered service", __FILE__, __LINE__);
}
CounterSampler::~CounterSampler() { rocprofiler_stop_context(ctx_); }
CounterSampler::~CounterSampler() { ctx_ = {}; }
const std::string& CounterSampler::decode_record_name(
const rocprofiler_record_counter_t& rec) const {