Skip to content

Commit

Permalink
temp (#908)
Browse files Browse the repository at this point in the history
Allow multiple profiles for agent profiling

Co-authored-by: Benjamin Welton <[email protected]>
  • Loading branch information
bwelton and Benjamin Welton authored Jun 13, 2024
1 parent 9676295 commit d15467b
Show file tree
Hide file tree
Showing 4 changed files with 277 additions and 200 deletions.
13 changes: 1 addition & 12 deletions source/lib/rocprofiler-sdk/context/context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,7 @@ struct dispatch_counter_collection_service

struct agent_counter_collection_service
{
rocprofiler::counters::agent_callback_data callback_data;
// Signal to manage the startup of the context. Allows us to ensure that
// the AQL packet we inject with start_context() completes before returning
hsa_signal_t start_signal;
std::shared_ptr<rocprofiler::counters::profile_config> profile;
rocprofiler_buffer_id_t buffer;
rocprofiler_agent_id_t agent_id;
rocprofiler_agent_profile_callback_t cb;
void* user_data;
// A flag to state wether or not the counter set is currently enabled. This is primarily
// to protect against multithreaded calls to enable a context (and enabling already
// enabled counters).
std::vector<rocprofiler::counters::agent_callback_data> agent_data;

enum class state
{
Expand Down
Loading

0 comments on commit d15467b

Please sign in to comment.