MCPcopy Index your code
hub / github.com/nodejs/node / read_cache

Method read_cache

deps/v8/tools/run_perf.py:776–782  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

774 self.cache_file = cache_file
775
776 def read_cache(self):
777 try:
778 with open(self.cache_file) as f:
779 return hjson.load(f)
780 except FileNotFoundError:
781 logging.info(f"{self.cache_file} doesn't exist yet. Creating new.")
782 return {}
783
784 def write_cache(self, cache):
785 with open(self.cache_file, 'w') as f:

Callers 4

testWarmup_OnEmptyMethod · 0.95
testWarmup_NotNeededMethod · 0.95
testWarmup_NeededMethod · 0.95
__init__Method · 0.80

Calls 3

infoMethod · 0.80
openFunction · 0.50
loadMethod · 0.45

Tested by 3

testWarmup_OnEmptyMethod · 0.76
testWarmup_NotNeededMethod · 0.76
testWarmup_NeededMethod · 0.76