Fixing ROCProfiler V1 Tests & V1 Tests Packaging

Change-Id: I741e29b8fbce9d4643c4f13afafd7d4fd648094b


[ROCm/rocprofiler commit: 19e3253049]
This commit is contained in:
Ammar ELWazir
2023-06-06 21:41:47 +00:00
parent 8bd2cf2405
commit b78efe35b4
52 changed files with 166 additions and 88 deletions
@@ -0,0 +1,22 @@
import sys
file = open(sys.argv[1], 'r')
Lines = file.readlines()
count = 0
flag = 0
print("Leaks Detected:")
for line in Lines:
if "object(s) allocated from" in line:
flag = 0
if "rocprofiler/src" in line and flag == 0:
print(line)
count+=1
flag = 1
if count == 0:
print("No Leaks were found!")
else:
print("Warning: Found (" + str(count) + ") Memory Leaks related to rocprofiler project!")