rocprofiler-sdk/agent_profile.h File Reference#
Rocprofiler SDK Developer API 0.4.0
ROCm Profiling API and tools
|
Include dependency graph for agent_profile.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Typedefs | |
typedef rocprofiler_status_t(* | rocprofiler_agent_set_profile_callback_t) (rocprofiler_context_id_t context_id, rocprofiler_profile_config_id_t config_id) |
Callback to set the profile config for the agent. | |
typedef void(* | rocprofiler_agent_profile_callback_t) (rocprofiler_context_id_t context_id, rocprofiler_agent_id_t agent_id, rocprofiler_agent_set_profile_callback_t set_config, void *user_data) |
Configure Profile Counting Service for agent. Called when the context is started. Selects the counters to be used for agent profiling. | |
Functions | |
rocprofiler_status_t | rocprofiler_configure_agent_profile_counting_service (rocprofiler_context_id_t context_id, rocprofiler_buffer_id_t buffer_id, rocprofiler_agent_id_t agent_id, rocprofiler_agent_profile_callback_t cb, void *user_data) |
Configure Profile Counting Service for agent. There may only be one agent profile configured per context and can be only one active context that is profiling a single agent at a time. Multiple agent contexts can be started at the same time if they are profiling different agents. | |
rocprofiler_status_t | rocprofiler_sample_agent_profile_counting_service (rocprofiler_context_id_t context_id, rocprofiler_user_data_t user_data, rocprofiler_counter_flag_t flags) |
Trigger a read of the counter data for the agent profile. The counter data will be written to the buffer specified in rocprofiler_configure_agent_profile_counting_service. The data in rocprofiler_user_data_t will be written to the buffer along with the counter data. flags can be used to specify if this call should be performed asynchronously (default is synchronous). | |
Generated by 1.9.8