metrics and counter importing

[ROCm/rocprofiler commit: fbc7de50f7]
Este commit está contenido en:
Evgeny
2018-02-12 15:00:20 -06:00
padre b9907b49ea
commit ef397b7d07
Se han modificado 14 ficheros con 253096 adiciones y 179 borrados
+4
Ver fichero
@@ -207,6 +207,10 @@ class Context {
const Metric* metric = metrics_->Get(name);
if (metric == NULL)
EXC_RAISING(HSA_STATUS_ERROR, "input metric '" << name << "' is not found");
#if 0
std::cout << " " << name << (metric->GetExpr() ? " = " + metric->GetExpr()->String() : " counter") << std::endl;
#endif
auto ret = metrics_map_.insert({name, metric});
if (!ret.second)
EXC_RAISING(HSA_STATUS_ERROR, "input metric '" << name