JSON trace dependencies flow to-tid fix

Change-Id: If21b12d0560e7db07b1ff02e0441addff3453cbe


[ROCm/rocprofiler commit: c196fbe0d5]
Tá an tiomantas seo le fáil i:
Evgeny
2020-06-28 03:39:50 -05:00
tuismitheoir fb7e7f1568
tiomantas 1a84fa2528
D'athraigh 3 comhad le 19 breiseanna agus 17 scriosta
+1 -2
Féach ar an gComhad
@@ -159,9 +159,8 @@ class SQLiteDB:
for ind in range(len(from_us_list)):
corr_id = corr_id_list[ind] if (len(corr_id_list) != 0) else ind
if corr_id in to_us_dict:
(from_ts, from_tid) = from_us_list[ind]
(from_ts, from_tid, to_tid) = from_us_list[ind]
from_ts -= start_us
to_tid = 0
to_ts = to_us_dict[corr_id] - start_us
if from_ts > to_ts: from_ts = to_ts
fd.write(',{"ts":%d,"ph":"s","cat":"DataFlow","id":%d,"pid":%d,"tid":%d,"name":"dep"}\n' % (from_ts, dep_id, from_pid, from_tid))