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:
@@ -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();
|
||||
}
|
||||
|
||||
مرجع در شماره جدید
Block a user