Perfetto traces from cached data (#1704)
## Motivation The idea is to unify the way and place where we store our traces. Current implementation uses `trace_cache` for rocpd traces, but perfetto is in lined inside of each module. This change allows us to have a single point in code where we will collect data, process it and store it in the desired format. This means that we can declutter the code further and have single point of responsibility and single point of failure. ## Technical Details New `processor` (perfetto_post_processing.cpp) is added to the `trace_cache` which purpose is to use the cached data to populate perfetto tracks. Cache manager is responsible for keeping the instance of this processor and for its lifetime.
这个提交包含在:
22 个文件已更改
+1889
-178
没有与搜索条件相匹配的文件
@@ -152,6 +152,7 @@ cache_comm_data_events(const uint32_t device_id, int bytes)
|
||||
const std::string line_info = "{}";
|
||||
|
||||
trace_cache::get_buffer_storage().store(trace_cache::pmc_event_with_sample{
|
||||
static_cast<size_t>(category_enum_id<category::comm_data>::value),
|
||||
track_name.c_str(), timestamp_ns, event_metadata.c_str(), stack_id,
|
||||
parent_stack_id, correlation_id, call_stack.c_str(), line_info.c_str(), device_id,
|
||||
static_cast<uint8_t>(agent_type::CPU), track_name.c_str(),
|
||||
|
||||
在新工单中引用
屏蔽一个用户