SWDEV-458196: Fixing PID and TID

Perfetto added more restrictions on the types, so "1" is different from 1 alone, which wasn't the case before. Thats why we are seeing this issue recently

Change-Id: I69835c8f61bb9168fdfcdcd0821c1ba35d0369fe


[ROCm/rocprofiler commit: 9681d0d8de]
This commit is contained in:
Ammar ELWazir
2024-04-25 15:17:44 -05:00
parent 4bf23fccb8
commit 1541f36388
+2
View File
@@ -261,6 +261,8 @@ class SQLiteDB:
if label != '"Index"':
if label == '"dur"' and value == 0:
vals_list.append('%s:"%s"' % (label, "1"))
elif label == '"pid"' or label == '"tid"':
vals_list.append('%s:%d' % (label, value))
else:
vals_list.append('%s:"%s"' % (label, value))