elf_mem_map: uniquify file names in qdirstat output

This commit is contained in:
Yuri D'Elia 2021-06-05 23:03:56 +02:00 committed by DRracer
parent 9917689fdf
commit d98e1b1cd9

View File

@ -350,6 +350,8 @@ def print_qdirstat(grefs):
base[name] = {} base[name] = {}
base = base[name] base = base[name]
name = paths[-1] name = paths[-1]
if name in base:
name = '{}_{:x}'.format(entry.name, entry.loc)
base[name] = entry.size base[name] = entry.size
def walker(root, prefix): def walker(root, prefix):