rocprofiler-sdk/device_counting_service.h Source File#
Rocprofiler SDK Developer API 0.5.0
ROCm Profiling API and tools
|
device_counting_service.h
Go to the documentation of this file.
72 * configured per agent in a context and can be only one active context that is profiling a single
102 * The data in rocprofiler_user_data_t will be written to the buffer along with the counter data.
108 * @param [in] flags Flags to specify how the counter data should be collected (defaults to sync).
112 * @retval ::ROCPROFILER_STATUS_ERROR_CONTEXT_ERROR Returned if another operation is in progress (
rocprofiler_counter_flag_t
Enumeration of flags that can be used with some counter api calls.
Definition fwd.h:407
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 counter...
Definition device_counting_service.h:64
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)
Trigger a read of the counter data for the agent profile. The counter data will be written to the buf...
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.
Definition device_counting_service.h:50
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 ag...
Generated by 1.9.8