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:
کامیت شده توسط
GitHub
والد
2fe63d873e
کامیت
c30bb7cbda
@@ -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;
|
||||
|
||||
مرجع در شماره جدید
Block a user