Add rocprofiler_load_counter_definition (#1193)

Adds rocprofiler_load_counter_definition. This function allows a counter definition file to be supplied to rocprofiler-sdk directly. Takes in a string containing the counter definition YAML, its size (in bytes), and a flag value to state whether this is an append operation or not.

---------

Co-authored-by: Benjamin Welton <ben@amd.com>
Co-authored-by: Jonathan R. Madsen <jrmadsen@users.noreply.github.com>
Co-authored-by: usrihari123 <srihari.u@amd.com>

[ROCm/rocprofiler-sdk commit: 7ddc72ad45]
This commit is contained in:
Benjamin Welton
2024-11-22 01:55:47 -08:00
committed by GitHub
parent 5bea1772ea
commit 39db3e8a1d
22 changed files with 384 additions and 8 deletions
@@ -56,9 +56,9 @@ struct json_output
return (*archive)(std::forward<Args>(args)...);
}
decltype(auto) startNode() { return archive->startNode(); }
decltype(auto) finishNode() { return archive->finishNode(); }
decltype(auto) makeArray() { return archive->makeArray(); }
void startNode() { archive->startNode(); }
void finishNode() { archive->finishNode(); }
void makeArray() { archive->makeArray(); }
decltype(auto) setNextName(const char* name) { archive->setNextName(name); }
void start_process();