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

Method maybe_warm_up

deps/v8/tools/run_perf.py:826–836  ·  view source on GitHub ↗
(self, name, warmup_fun)

Source from the content-addressed store, hash-verified

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)):
828 return
829
830 logging.info(f'Warm-up run of {name} - disregarding output.')
831 try:
832 warmup_fun()
833 finally:
834 self.cache[name] = time.time()
835 self.cache_handler.write_cache(self.cache)
836 logging.info(f'Warm-up done.')
837
838
839class Platform(object):

Callers

nothing calls this directly

Calls 5

is_warmed_upMethod · 0.95
infoMethod · 0.80
write_cacheMethod · 0.80
getMethod · 0.65
timeMethod · 0.45

Tested by

no test coverage detected