Add perfetto support for scratch memory (#303)

* Add perfetto support for scratch memory

* Updated tests and docs.

* Update docs data

* Added underflow check

* Record all free events to 0 bytes

* Add format

* Address review comment

* updated tests for scratch memory

* update scratch-memory tests.

[ROCm/rocprofiler-sdk commit: 6f2a5a9646]
This commit is contained in:
U, Srihari
2025-07-09 21:05:45 +05:30
کامیت شده توسط GitHub
والد fbf17a42d4
کامیت 7243889d6a
13فایلهای تغییر یافته به همراه228 افزوده شده و 16 حذف شده
@@ -472,11 +472,11 @@ generate_csv(const output_config&
{"Kind",
"Operation",
"Agent_Id",
"Allocation_Size",
"Address",
"Correlation_Id",
"Start_Timestamp",
"End_Timestamp"}};
"End_Timestamp",
"Allocation_Size"}};
for(auto ditr : data)
{
for(auto record : data.get(ditr))
@@ -677,6 +677,7 @@ generate_csv(const output_config&
"Alloc_Flags",
"Start_Timestamp",
"End_Timestamp",
"Allocation_Size",
}};
for(auto ditr : data)
@@ -696,7 +697,8 @@ generate_csv(const output_config&
record.thread_id,
record.flags,
record.start_timestamp,
record.end_timestamp);
record.end_timestamp,
record.allocation_size);
ofs << row_ss.str();
}