rocprofiler-sdk/experimental/counters.h File Reference#
Rocprofiler SDK Developer API 0.6.0
ROCm Profiling API and tools
|
counters.h File Reference
#include <rocprofiler-sdk/agent.h>
#include <rocprofiler-sdk/defines.h>
#include <rocprofiler-sdk/fwd.h>
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] yaml YAML string containing counter definitions [in] size Size of the YAML string [in] flags Flags to apply to the counter definition
- Returns
- rocprofiler_status_t
- Return values
-
ROCPROFILER_STATUS_SUCCESS if counter definition applied ROCPROFILER_STATUS_ERROR if counter definition already loaded
Generated by 1.9.8