def add_reporter(self, reporter):
        """Add a MetricReporter"""
        with self._lock:
            reporter.init(list(self.metrics.values()))
            self._reporters.append(reporter)
def add_reporter ( self , reporter ) : with self . _lock : reporter . init ( list ( self . metrics . values ( ) ) ) self . _reporters . append ( reporter )
Add a MetricReporter