def dump(self):
        """Output all recorded metrics"""
        with self.lock:
            atexit.unregister(self.dump)
            self.fh.close()
def dump ( self ) : with self . lock : atexit . unregister ( self . dump ) self . fh . close ( )
Output all recorded metrics