Adding start and end timestamp columns in csv (#1128)

* Adding start and end timestamp columns in csv

* Adding assert check for the counter timestamps

---------

Co-authored-by: Gopesh Bhardwaj <gopesh.bhardwaj@amd.com>

[ROCm/rocprofiler-sdk commit: 673c21c6db]
This commit is contained in:
Manjunath P Jakaraddi
2024-10-16 23:01:00 -07:00
committed by GitHub
parent 9ea02403df
commit ad4b331279
5 changed files with 14 additions and 8 deletions
@@ -483,7 +483,9 @@ generate_csv(tool_table* too
"VGPR_Count",
"SGPR_Count",
"Counter_Name",
"Counter_Value"}};
"Counter_Value",
"Start_Timestamp",
"End_Timestamp"}};
for(const auto& record : data)
{
auto kernel_id = record.dispatch_data.dispatch_info.kernel_id;
@@ -525,7 +527,9 @@ generate_csv(tool_table* too
record.arch_vgpr_count,
record.sgpr_count,
itr.first,
itr.second);
itr.second,
record.dispatch_data.start_timestamp,
record.dispatch_data.end_timestamp);
}
ofs << row_ss.str();
}