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

Method __init__

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

Source from the content-addressed store, hash-verified

808 creating this directory.
809 """
810 def __init__(self):
811 self.cache_handler = CacheHandler(WARMUP_CACHE_FILE)
812 self.cache = self.cache_handler.read_cache()
813 self.last_reboot = psutil.boot_time()
814 self.trim_cache()
815 # Ensure the trimmed version is on disk.
816 self.cache_handler.write_cache(self.cache)
817
818 def is_warmed_up(self, timestamp):
819 return timestamp > self.last_reboot

Callers

nothing calls this directly

Calls 4

trim_cacheMethod · 0.95
read_cacheMethod · 0.80
write_cacheMethod · 0.80
CacheHandlerClass · 0.70

Tested by

no test coverage detected