Merge "Dump memcpy info for hsa" into amd-master

[ROCm/rocprofiler commit: 86f32d591b]
Этот коммит содержится в:
Rachida Kebichi
2020-07-21 14:59:43 -04:00
коммит произвёл Gerrit Code Review
родитель 27af6bc043 d96c67b2bf
Коммит 164dcde05a
+5 -5
Просмотреть файл
@@ -122,10 +122,6 @@ class MemManager:
tid = recvals[3]
select_expr = '"Index" = ' + str(recordid) + ' AND "proc-id" = ' + str(procid)
async_copy_recvals = self.db.table_get_record('COPY', select_expr) #List of async copy record fields
async_copy_start_time = async_copy_recvals[0]
async_copy_end_time = async_copy_recvals[1]
async_copy_tid = async_copy_recvals[4]
# hipMemcpy(void* dst, const void* src, size_t sizeBytes, hipMemcpyKind kind)
hipMemcpy_ptrn = re.compile(r'\(dst\((.*)\) src\((.*)\) sizeBytes\((\d+)\).*\)')
@@ -145,7 +141,11 @@ class MemManager:
m_array = hipMemcpy_ptrn3.match(args)
is_async = 1 if async_event_ptrn.search(event) else 0
if is_async: tid = async_copy_tid
if is_async:
async_copy_recvals = self.db.table_get_record('COPY', select_expr) #List of async copy record fields
async_copy_start_time = async_copy_recvals[0]
async_copy_end_time = async_copy_recvals[1]
tid = async_copy_recvals[4]
copy_line = ''
size = 0