![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Namespaces | |
namespace | memory_leaks |
Functions | |
memory_leaks.find_call_and_line (elem, file, directory) | |
Variables | |
str | memory_leaks.directory = "../src/iop/" |
str | memory_leaks.alloc_regex = r"([a-zA-Z0-9_\->\.\[\]]+) = (dt_|c|m|dt_opencl_)alloc.*\(.+\)" |
memory_leaks.f = open(os.path.join(directory, file), "r") | |
memory_leaks.content = f.read() | |
memory_leaks.matches = re.finditer(alloc_regex, content, re.MULTILINE) | |
int | memory_leaks.safe_allocs = 0 |
int | memory_leaks.faulty_allocs = 0 |
int | memory_leaks.suspicious_allocs = 0 |
memory_leaks.variable_name = match.group(1) | |
memory_leaks.alloc_type = match.group(2) | |
str | memory_leaks.variable_alloc_regex = " %s = %salloc.*\(.+\)" % (variable_name, alloc_type) |
memory_leaks.matches2 = re.findall(variable_alloc_regex, content, re.MULTILINE) | |
memory_leaks.allocs = len(matches2) | |
str | memory_leaks.variable_free_regex = r"" |
str | memory_leaks.buffer_type = "" |
memory_leaks.matches3 = re.findall(variable_free_regex, content, re.MULTILINE) | |
memory_leaks.frees = len(matches3) | |
str | memory_leaks.msg_type = "INFO" |