Fix rocpd memory trace csv output (#166)
Co-authored-by: Srihari Uttanur <srihari.u@amd.com> Co-authored-by: systems-assistant[bot] <systems-assistant[bot]@users.noreply.github.com>
This commit is contained in:
کامیت شده توسط
GitHub
والد
8b08c62fd2
کامیت
e56ff3716d
@@ -318,7 +318,13 @@ write_memory_allocation_csv(
|
|||||||
CsvType::MEMORY_ALLOCATION,
|
CsvType::MEMORY_ALLOCATION,
|
||||||
memory_alloc_gen,
|
memory_alloc_gen,
|
||||||
[](CsvManager& cm, CsvType type, const rocpd::types::memory_allocation& malloc) {
|
[](CsvManager& cm, CsvType type, const rocpd::types::memory_allocation& malloc) {
|
||||||
std::string operation = fmt::format("MEMORY_ALLOCATION_{}", malloc.type);
|
std::string normalized_type = malloc.type;
|
||||||
|
if (normalized_type == "ALLOC")
|
||||||
|
{
|
||||||
|
normalized_type = "ALLOCATE";
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string operation = fmt::format("MEMORY_ALLOCATION_{}", normalized_type);
|
||||||
|
|
||||||
std::string agent_identifier = create_agent_index(cm.config.agent_index_value,
|
std::string agent_identifier = create_agent_index(cm.config.agent_index_value,
|
||||||
malloc.agent_abs_index,
|
malloc.agent_abs_index,
|
||||||
|
|||||||
مرجع در شماره جدید
Block a user