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, Sriraksha
2025-03-14 02:51:32 -05:00
کامیت شده توسط GitHub
والد 2fe63d873e
کامیت c30bb7cbda
32فایلهای تغییر یافته به همراه604 افزوده شده و 108 حذف شده
@@ -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;