Change-Id: Ic0cc280ba207d2b8f6ccae1cd4ac3184152fc1ad
Αυτή η υποβολή περιλαμβάνεται σε:
Ammar ELWazir
2023-02-03 12:31:39 -06:00
γονέας e0e5f7336b
υποβολή 8032adb64f
263 αρχεία άλλαξαν με 607729 προσθήκες και 307 διαγραφές
@@ -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!")