(self)
| 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 |
nothing calls this directly
no test coverage detected