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

Method trim_cache

deps/v8/tools/run_perf.py:821–824  ·  view source on GitHub ↗

Prevent obsolete entries occupying the cache file.

(self)

Source from the content-addressed store, hash-verified

819 return timestamp > self.last_reboot
820
821 def trim_cache(self):
822 """Prevent obsolete entries occupying the cache file."""
823 self.cache = dict(
824 (k, v) for k, v in self.cache.items() if self.is_warmed_up(v))
825
826 def maybe_warm_up(self, name, warmup_fun):
827 if self.is_warmed_up(self.cache.get(name, 0)):

Callers 1

__init__Method · 0.95

Calls 2

is_warmed_upMethod · 0.95
itemsMethod · 0.45

Tested by

no test coverage detected