Home
last modified time | relevance | path

Searched refs:cache_f (Results 1 – 3 of 3) sorted by relevance

/external/chromium_org/tools/deep_memory_profiler/lib/
Dsymbol.py129 def update(self, symbol_type, bucket_set, symbol_finder, cache_f): argument
149 cache_f.seek(0, os.SEEK_SET)
150 self._load(cache_f, symbol_type)
160 cache_f.seek(0, os.SEEK_END)
168 cache_f.write('%x %s\n' % (address, stripped_symbol))
183 def _load(self, cache_f, symbol_type): argument
185 for line in cache_f:
Dsubcommand.py55 with open(prefix + '.cache.function', 'a+') as cache_f:
58 SymbolFinder(FUNCTION_SYMBOLS, symbol_data_sources), cache_f)
59 with open(prefix + '.cache.typeinfo', 'a+') as cache_f:
62 SymbolFinder(TYPEINFO_SYMBOLS, symbol_data_sources), cache_f)
63 with open(prefix + '.cache.sourcefile', 'a+') as cache_f:
66 SymbolFinder(SOURCEFILE_SYMBOLS, symbol_data_sources), cache_f)
/external/chromium_org/tools/deep_memory_profiler/tests/
Ddmprof_test.py76 cache_f = cStringIO.StringIO()
77 cache_f.write(self._TEST_FUNCTION_CACHE)
83 self.MockSymbolFinder(self._TEST_FUNCTION_DICT), cache_f)
87 self.assertEqual(self._TEST_FUNCTION_CACHE, cache_f.getvalue())
93 self.MockSymbolFinder(self._TEST_FUNCTION_DICT), cache_f)
97 self.assertEqual(self._EXPECTED_TEST_FUNCTION_CACHE, cache_f.getvalue())