Update controller.cpp (#932)

* Update controller.cpp

* Update controller.cpp

* Formatting
This commit is contained in:
Ammar ELWazir
2024-06-13 18:54:21 -05:00
committed by GitHub
parent ef156c3bee
commit c6ec8ca1db
@@ -93,10 +93,11 @@ CounterController::configure_agent_collection(rocprofiler_context_id_t
}
ctx.agent_counter_collection->agent_data.emplace_back();
ctx.agent_counter_collection->agent_data.back().callback_data = {.ptr = user_data};
ctx.agent_counter_collection->agent_data.back().agent_id = agent_id;
ctx.agent_counter_collection->agent_data.back().cb = cb;
ctx.agent_counter_collection->agent_data.back().buffer = buffer_id;
ctx.agent_counter_collection->agent_data.back().callback_data =
rocprofiler_user_data_t{.ptr = user_data};
ctx.agent_counter_collection->agent_data.back().agent_id = agent_id;
ctx.agent_counter_collection->agent_data.back().cb = cb;
ctx.agent_counter_collection->agent_data.back().buffer = buffer_id;
return ROCPROFILER_STATUS_SUCCESS;
}
@@ -187,4 +188,4 @@ get_profile_config(rocprofiler_profile_config_id_t id)
}
}
} // namespace counters
} // namespace rocprofiler
} // namespace rocprofiler