Lines Matching refs:addr
256 def FindMapping(mappings, addr): argument
269 if mappings[mid].end <= addr:
271 elif mappings[mid].start > addr:
292 for addr in backtrace.frames:
293 if addr in addr_offsets:
295 mapping = FindMapping(mappings, addr)
297 addr_offsets[addr] = addr - mapping.start + mapping.offset
300 addrs_by_lib[mapping.name].append(addr)
302 resolved_addrs[addr] = empty_frame_description
322 for addr in addrs_by_lib[lib]:
323 input_addrs += "%s\n" % hex(addr_offsets[addr] - file_offset)
344 for addr in addrs_by_lib[lib]:
345 resolved_addrs[addr] = fd
349 def Addr2Line(resolved_addrs, addr): argument
350 if addr == "ZYGOTE" or addr == "APP":
353 return resolved_addrs[int(addr, 16)]
356 def __init__(self, addr): argument
357 self.addr = addr
368 if not (child.addr in self.children):
369 self.children[child.addr] = child
370 self.children[child.addr].addStack(size, num_allocs, stack[1:])
373 fd = Addr2Line(resolved_addrs, node.addr)
380 …s" % (node.size, total_percent, parent_percent, node.number, indent, node.addr, fd.library, fd.fun…
386 fd = Addr2Line(resolved_addrs, node.addr)
463 for addr in backtrace.frames:
464 stack.append(AddrInfo("%x" % addr))