SWDEV-382125: Adding a description when counter is not supported on a hardware

Change-Id: Ic835f59029aa1a95d32b80bf79375978e8ea9635


[ROCm/rocprofiler commit: 1d0703b21e]
Šī revīzija ir iekļauta:
Sriraksha Nagaraj
2023-02-15 20:09:43 +00:00
revīziju iesūtīja Ammar ELWazir
vecāks eeb0fb641f
revīzija 9b5ec5368d
2 mainīti faili ar 9 papildinājumiem un 3 dzēšanām
@@ -436,7 +436,8 @@ class Context {
if (kind == ROCPROFILER_FEATURE_KIND_METRIC) { // Processing metrics features
const Metric* metric = metrics_->Get(name);
if (metric == NULL)
EXC_RAISING(HSA_STATUS_ERROR, "input metric '" << name << "' is not found");
EXC_RAISING(HSA_STATUS_ERROR, "input metric '" << name << "' is not supported on this hardware: "
<< agent_info_->name);
#if 0
std::cout << " " << name << (metric->GetExpr() ? " = " + metric->GetExpr()->String() : " counter") << std::endl;
#endif