diff --git a/projects/rocprofiler/src/core/metrics.h b/projects/rocprofiler/src/core/metrics.h index b777c2899f..e53b9e090e 100644 --- a/projects/rocprofiler/src/core/metrics.h +++ b/projects/rocprofiler/src/core/metrics.h @@ -107,7 +107,7 @@ class MetricsDict { } } - const Metric* Get(const std::string& name) { + const Metric* Get(const std::string& name) const { const Metric* metric = NULL; auto it = cache_.find(name);