Home
last modified time | relevance | path

Searched refs:mappings (Results 1 – 2 of 2) sorted by relevance

/development/scripts/
Dnative_heapdump_viewer_tests.py167 backtraces, mappings = native_heapdump_viewer.ParseNativeHeap(heap, True, True, "")
169 self.assertTrue(mappings)
170 self.assertEqual(2, len(mappings))
172 self.assertEqual(0x1000, mappings[0].start)
173 self.assertEqual(0x4000, mappings[0].end)
174 self.assertEqual(0, mappings[0].offset)
175 self.assertEqual("/system/lib64/libc.so", mappings[0].name)
177 self.assertEqual(0xa000, mappings[1].start)
178 self.assertEqual(0xf000, mappings[1].end)
179 self.assertEqual(0xb000, mappings[1].offset)
[all …]
Dnative_heapdump_viewer.py221 mappings = []
253 mappings.append(GetMappingFromOffset(Mapping(start, end, offset, name), app_symboldir))
254 return backtraces, mappings
256 def FindMapping(mappings, addr): argument
264 max = len(mappings) - 1
269 if mappings[mid].end <= addr:
271 elif mappings[mid].start > addr:
274 return mappings[mid]
277 def ResolveAddrs(html_output, symboldir, app_symboldir, backtraces, mappings): argument
295 mapping = FindMapping(mappings, addr)
[all …]