Skip to content

Commit

Permalink
Adding Node-id for debugging with log level trace (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgopesh authored Oct 10, 2024
1 parent 81e93a6 commit 8ab1ed7
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions source/lib/rocprofiler-sdk/aql/packet_construct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,14 @@ CounterPacketConstruct::CounterPacketConstruct(rocprofiler_agent_id_t
_metrics.emplace_back().metric = x;
uint32_t event_id = std::atoi(x.event().c_str());

ROCP_TRACE << fmt::format(
"Fetching events for counter {} (id={}, instance_count={}) on agent {} (name:{})",
x.name(),
event_id,
query_info.instance_count,
agent.handle,
rocprofiler::agent::get_agent(agent)->name);
ROCP_TRACE << fmt::format("Fetching events for counter {} (id={}, instance_count={}) on "
"agent {} (node-id:{})(name:{})",
x.name(),
event_id,
query_info.instance_count,
agent.handle,
rocprofiler::agent::get_agent(agent)->node_id,
rocprofiler::agent::get_agent(agent)->name);

for(unsigned block_index = 0; block_index < query_info.instance_count; ++block_index)
{
Expand Down

0 comments on commit 8ab1ed7

Please sign in to comment.