rocprofiler-sdk/device_counting_service.h Source File#
|
ROCprofiler-SDK developer API 1.0.0
ROCm Profiling API and tools
|
device_counting_service.h
74 * @brief (experimental) Configure Device Counting Service for agent. There may only be one counting
75 * service configured per agent in a context and can be only one active context that is profiling a
82 * to this buffer. If the input buffer id is null (i.e. `rocprofiler_buffer_id_t{.handle = 0}`), the
83 * counter data will not be written to a buffer and will only be returned in the output_records of
106 * @brief (experimental) Trigger a read of the counter data for the agent profile. The counter data
108 * data in rocprofiler_user_data_t will be written to the buffer along with the counter data. flags
109 * can be used to specify if this call should be performed asynchronously (default is synchronous).
113 * @param [in] flags Flags to specify how the counter data should be collected (defaults to sync).
114 * @param [in] output_records (Optional) Provides the values immediately instead of outputting to
121 * @retval ::ROCPROFILER_STATUS_ERROR_CONTEXT_ERROR Returned if another operation is in progress (
124 * @retval ::ROCPROFILER_STATUS_ERROR_OUT_OF_RESOURCES Returned output_records is set but size is
rocprofiler_counter_flag_t
Enumeration of flags that can be used with some counter api calls.
Definition fwd.h:472
(experimental) ROCProfiler Profile Counting Counter Record per instance.
Definition fwd.h:835
rocprofiler_status_t(* rocprofiler_device_counting_agent_cb_t)(rocprofiler_context_id_t context_id, rocprofiler_counter_config_id_t config_id)
(experimental) Callback to set the profile config for the agent.
Definition device_counting_service.h:52
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_cb_t cb, void *user_data)
(experimental) Configure Device Counting Service for agent. There may only be one counting service co...
void(* rocprofiler_device_counting_service_cb_t)(rocprofiler_context_id_t context_id, rocprofiler_agent_id_t agent_id, rocprofiler_device_counting_agent_cb_t set_config, void *user_data)
(experimental) Configure Profile Counting Service for agent. Called when the context is started....
Definition device_counting_service.h:67
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_counter_record_t *output_records, unsigned long *rec_count)
(experimental) Trigger a read of the counter data for the agent profile. The counter data will be wri...
Generated by