Example #1
0
File: images.py Project: vrza/omot
 def clear(self):
     prevrss = int(proc_status('VmRSS')[0])
     logger.debug("Clearing object cache: %s", self.cache)
     super(Images, self).clear()
     logger.debug("Running garbage collection...")
     start = time.time()
     gc.collect()
     logger.debug("Garbage collection took %s seconds", time.time() - start)
     logger.debug("Resource usage before: %d kB", prevrss)
     logger.debug("Resource usage after: %s kB", proc_status('VmRSS')[0])
     logger.debug("Freed %d kB of resident memory", prevrss - int(proc_status('VmRSS')[0]))
Example #2
0
File: images.py Project: vrza/omot
 def print_status(self):
     super(Images, self).print_keys()
     logger.info( "RSS: %s", proc_status('VmRSS'))