rocprofiler-sdk/device_counting_service.h File Reference#
Rocprofiler SDK Developer API 0.6.0
ROCm Profiling API and tools
|
Include dependency graph for device_counting_service.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_device_counting_service_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_device_counting_service (rocprofiler_context_id_t context_id, rocprofiler_buffer_id_t buffer_id, rocprofiler_agent_id_t agent_id, rocprofiler_device_counting_service_callback_t cb, void *user_data) |
Configure Device Counting Service for agent. There may only be one counting service configured per agent in a 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_device_counting_service (rocprofiler_context_id_t context_id, rocprofiler_user_data_t user_data, rocprofiler_counter_flag_t flags, rocprofiler_record_counter_t *output_records, unsigned long *rec_count) |
Trigger a read of the counter data for the agent profile. The counter data will be written to the buffer specified in rocprofiler_configure_device_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