rocprofiler-sdk/experimental/counters.h File Reference

rocprofiler-sdk/experimental/counters.h File Reference#

Rocprofiler SDK Developer API: rocprofiler-sdk/experimental/counters.h File Reference
Rocprofiler SDK Developer API 0.6.0
ROCm Profiling API and tools
counters.h File Reference
+ Include dependency graph for counters.h:

Go to the source code of this file.

Functions

rocprofiler_status_t rocprofiler_load_counter_definition (const char *yaml, unsigned long size, rocprofiler_counter_flag_t flags)
 Apply a custom counter definition (YAML). This function must be called before counter iteration functions like rocprofiler_iterate_agent_supported_counters if custom counter definitions are to be used. This function will return an error if the definition has already been loaded.
 

Function Documentation

◆ rocprofiler_load_counter_definition()

rocprofiler_status_t rocprofiler_load_counter_definition ( const char *  yaml,
unsigned long  size,
rocprofiler_counter_flag_t  flags 
)

Apply a custom counter definition (YAML). This function must be called before counter iteration functions like rocprofiler_iterate_agent_supported_counters if custom counter definitions are to be used. This function will return an error if the definition has already been loaded.

Parameters
[in]yamlYAML string containing counter definitions
[in]sizeSize of the YAML string
[in]flagsFlags to apply to the counter definition
Returns
rocprofiler_status_t
Return values
ROCPROFILER_STATUS_SUCCESSif counter definition applied
ROCPROFILER_STATUS_ERRORif counter definition already loaded