SWDEV-540648: Adding realtime clock to v3 tool. Update decoder header. (#666)

* SWDEV-540648: Adding realtime clock to v3 tool. Update header for decoder.

* Adding tests

* Review comments

* Review comment
This commit is contained in:
Giovanni Lenzi Baraldi
2025-09-10 12:39:27 +02:00
committed by GitHub
parent 4e9acd492d
commit 9849073836
18 changed files with 193 additions and 82 deletions
@@ -51,6 +51,7 @@ ATTFileMgr::ATTFileMgr(Fspath _dir,
table = std::make_shared<AddressTable>();
codefile = std::make_shared<CodeFile>(dir, table);
filenames = std::make_shared<FilenameMgr>(dir);
realtime = std::make_shared<RealtimeTS>(dir);
for(size_t i = 0; i < ROCPROFILER_THREAD_TRACE_DECODER_WSTATE_LAST; i++)
wstates.at(i) = std::make_shared<WstatesFile>(i, dir);
@@ -97,7 +98,7 @@ ATTFileMgr::addDecoder(const char* filepath, uint64_t id, uint64_t load_addr, ui
void
ATTFileMgr::parseShader(int se_id, std::vector<char>& data)
{
WaveConfig config(se_id, filenames, codefile, wstates);
WaveConfig config(se_id, filenames, codefile, realtime, wstates);
ToolData tooldata(data, config, decoder);
if(!config.occupancy.empty()) occupancy.emplace(se_id, std::move(config.occupancy));