Lines Matching refs:code_map
347 def __init__(self, log_name, code_map, snapshot_pos_to_name): argument
351 self.code_map = code_map
401 conficting_code = self.code_map.Find(start_address)
405 self.code_map.Remove(conficting_code)
413 self.code_map.Add(code)
424 code = self.code_map.Find(old_start_address)
430 self.code_map.Remove(code)
434 self.code_map.Add(code)
441 code = self.code_map.Find(old_start_address)
447 self.code_map.Remove(code)
692 def Load(self, mmap_info, code_map, options): argument
700 return self._LoadKernelSymbols(code_map)
750 code_map.Add(Code(name, start_address, start_address + size,
773 def _LoadKernelSymbols(self, code_map): argument
787 code_map.Add(code, 16)
792 def PrintReport(code_map, library_repo, arch, ticks, options): argument
794 used_code = [code for code in code_map.UsedCode()]
812 def PrintDot(code_map, options): argument
814 for code in code_map.UsedCode():
887 code_map = CodeMap() variable
889 code_map=code_map,
911 library_repo.Load(mmap_info, code_map, options)
917 code = code_map.Find(sample.ip)
926 caller_code = code_map.Find(ip)
934 PrintDot(code_map, options)
936 PrintReport(code_map, library_repo, log_reader.arch, ticks, options)
945 print "%10d total symbols" % len([c for c in code_map.AllCode()])
946 print "%10d used symbols" % len([c for c in code_map.UsedCode()])