Adding agent-index (#189)

* Adding agent-index

* review changes

* review comments addressed

* minor fix

* fix CI failure

* review comments

* Fix agent index test and address review comments

* Build Fixes

---------

Co-authored-by: Benjamin Welton <bewelton@amd.com>
This commit is contained in:
Nagaraj, SrirakshaandBenjamin Welton authored and GitHub committed 2025-03-14 00:51:32 -07:00
1 parent 2fe63d873e
commit c30bb7cbda
32 files changed
+604 -108

No files matched your search

+8
View File
@@ -87,6 +87,14 @@ output_config::parse_env()
<< "Unsupported output format type: " << itr;
}
std::string agent_index = common::get_env("ROCPROF_AGENT_INDEX", "relative");
if(agent_index == "type-relative")
agent_index_value = agent_indexing::logical_node_type;
else if(agent_index == "absolute")
agent_index_value = agent_indexing::node;
else
agent_index_value = agent_indexing::logical_node;
const auto supported_perfetto_backends = std::set<std::string_view>{"inprocess", "system"};
LOG_IF(FATAL, supported_perfetto_backends.count(perfetto_backend) == 0)
<< "Unsupported perfetto backend type: " << perfetto_backend;