Fix rocprofv3 output filename containing sub-directory (#1062)
* Fix -d option broken by hostname * Fix rocprofv3 output filename containing directory * Fix TID handling in Perfetto and OTF2 output * Revert changes which removed hostname * Revise tests/rocprofv3/tracing output filenames - specify an output filename for tests which include a subdirectory --------- Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
This commit is contained in:
@@ -1568,13 +1568,17 @@ write_perfetto()
|
||||
|
||||
for(auto itr : memory_copy_bf_records)
|
||||
{
|
||||
tids.emplace(itr.thread_id);
|
||||
agent_ids.emplace(itr.dst_agent_id.handle);
|
||||
agent_ids.emplace(itr.src_agent_id.handle);
|
||||
}
|
||||
|
||||
for(auto itr : kernel_dispatch_bf_records)
|
||||
{
|
||||
tids.emplace(itr.thread_id);
|
||||
agent_queue_ids[itr.dispatch_info.agent_id.handle].emplace(
|
||||
itr.dispatch_info.queue_id.handle);
|
||||
}
|
||||
}
|
||||
|
||||
auto thread_tracks = std::unordered_map<rocprofiler_thread_id_t, ::perfetto::Track>{};
|
||||
|
||||
Reference in New Issue
Block a user