rocprofiler-sdk/device_counting_service.h Source File#
Rocprofiler SDK Developer API 0.6.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).
109 * @param [in/out] output_records Output records collected via sampling (output is also written to
111 * @param [in/out] rec_count On entry, this is the maximum number of records rocprof can store in
116 * @retval ::ROCPROFILER_STATUS_ERROR_CONTEXT_ERROR Returned if another operation is in progress (
119 * @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:432
ROCProfiler Profile Counting Counter Record per instance.
Definition fwd.h:720
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 buf...
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_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