Added error log for query counter info (#903)

* Added error log for query counter info
这个提交包含在:
Benjamin Welton
2024-06-07 13:27:14 -07:00
提交者 GitHub
父节点 3d9a448797
当前提交 10fdba985f
共修改 2 个文件,包含 9 行新增和 6 行删除
+2
查看文件
@@ -26,6 +26,7 @@
#include <fmt/core.h>
#include "lib/common/container/small_vector.hpp"
#include "lib/common/logging.hpp"
#include "lib/common/static_object.hpp"
#include "lib/common/synchronized.hpp"
#include "lib/rocprofiler-sdk/agent.hpp"
@@ -74,6 +75,7 @@ rocprofiler_query_counter_info(rocprofiler_counter_id_t counter_id,
return ROCPROFILER_STATUS_SUCCESS;
}
ROCP_ERROR << fmt::format("Could not find counter with id = {}", counter_id.handle);
return ROCPROFILER_STATUS_ERROR_COUNTER_NOT_FOUND;
}