rocprofiler-sdk/counters.h File Reference

rocprofiler-sdk/counters.h File Reference#

Rocprofiler SDK Developer API: rocprofiler-sdk/counters.h File Reference
Rocprofiler SDK Developer API 0.4.0
ROCm Profiling API and tools
counters.h File Reference
+ Include dependency graph for counters.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_available_dimensions_cb_t) (rocprofiler_counter_id_t id, const rocprofiler_record_dimension_info_t *dim_info, unsigned long num_dims, void *user_data)
 Callback that gives a list of available dimensions for a counter.
 
typedef rocprofiler_status_t(* rocprofiler_available_counters_cb_t) (rocprofiler_agent_id_t agent_id, rocprofiler_counter_id_t *counters, unsigned long num_counters, void *user_data)
 Callback that gives a list of counters available on an agent. The counters variable is owned by rocprofiler and should not be free'd.
 

Functions

rocprofiler_status_t rocprofiler_query_record_counter_id (rocprofiler_counter_instance_id_t id, rocprofiler_counter_id_t *counter_id)
 Query counter id information from record_id.
 
rocprofiler_status_t rocprofiler_query_record_dimension_position (rocprofiler_counter_instance_id_t id, rocprofiler_counter_dimension_id_t dim, unsigned long *pos)
 Query dimension position from record_id. If the dimension does not exist in the counter, the return will be 0.
 
rocprofiler_status_t rocprofiler_iterate_counter_dimensions (rocprofiler_counter_id_t id, rocprofiler_available_dimensions_cb_t info_cb, void *user_data)
 Return information about the dimensions that exists for a specific counter and the extent of each dimension.
 
rocprofiler_status_t rocprofiler_query_counter_info (rocprofiler_counter_id_t counter_id, rocprofiler_counter_info_version_id_t version, void *info)
 Query Counter info such as name or description.
 
rocprofiler_status_t rocprofiler_query_counter_instance_count (rocprofiler_agent_id_t agent_id, rocprofiler_counter_id_t counter_id, unsigned long *instance_count)
 This call returns the number of instances specific counter contains.
 
rocprofiler_status_t rocprofiler_iterate_agent_supported_counters (rocprofiler_agent_id_t agent_id, rocprofiler_available_counters_cb_t cb, void *user_data)
 Query Agent Counters Availability.