Lines Matching refs:mapping
73 print('%d mappings' % len(p.mapping))
74 for i in range(len(p.mapping)):
76 self.show_mapping(p.mapping[i], sub_space)
130 mapping = self.profile.mapping[mapping_id - 1]
131 self.show_mapping(mapping, space)
133 def show_mapping(self, mapping, space=''): argument
134 print('%sid: %d' % (space, mapping.id))
135 print('%smemory_start: %x' % (space, mapping.memory_start))
136 print('%smemory_limit: %x' % (space, mapping.memory_limit))
137 print('%sfile_offset: %x' % (space, mapping.file_offset))
138 print('%sfilename: %s(%d)' % (space, self.string(mapping.filename),
139 mapping.filename))
140 print('%sbuild_id: %s(%d)' % (space, self.string(mapping.build_id),
141 mapping.build_id))
142 print('%shas_functions: %s' % (space, mapping.has_functions))
143 print('%shas_filenames: %s' % (space, mapping.has_filenames))
144 print('%shas_line_numbers: %s' % (space, mapping.has_line_numbers))
145 print('%shas_inline_frames: %s' % (space, mapping.has_inline_frames))
324 for mapping in self.mapping_list:
325 self.gen_profile_mapping(mapping)
380 mapping_id = self.get_mapping_id(symbol.mapping[0], symbol.dso_name)
403 mapping = Mapping(report_mapping.start, report_mapping.end,
405 exist_mapping = self.mapping_map.get(mapping.key)
409 mapping.id = len(self.mapping_list) + 1
410 self.mapping_list.append(mapping)
411 self.mapping_map[mapping.key] = mapping
412 return mapping.id
447 mapping = self.get_mapping(location.mapping_id)
448 dso_name = self.get_string(mapping.filename_id)
459 mapping = self.get_mapping(location.mapping_id)
460 dso_name = self.get_string(mapping.filename_id)
499 def gen_profile_mapping(self, mapping): argument
500 profile_mapping = self.profile.mapping.add()
501 profile_mapping.id = mapping.id
502 profile_mapping.memory_start = mapping.memory_start
503 profile_mapping.memory_limit = mapping.memory_limit
504 profile_mapping.file_offset = mapping.file_offset
505 profile_mapping.filename = mapping.filename_id
506 profile_mapping.build_id = mapping.build_id_id