(self, key)
return self._histograms[key]
Gets a histogram based on a key, creates a new one if it does not exist.

        :param key: name of the metric
        :type key: C{str}

        :return: L{Histogram}
Gets a histogram based on a key, creates a new one if it does not exist.
Gets a histogram based on a key creates a new one if it does not exist .
def histogram(self, key):
        """
        Gets a histogram based on a key, creates a new one if it does not exist.

        :param key: name of the metric
        :type key: C{str}

        :return: L{Histogram}
        """
        if key not in self._histograms:
            self._histograms[key] = Histogram(clock=self._clock)
        return self._histograms[key]
def histogram ( self , key ) : if key not in self . _histograms : self . _histograms [ key ] = Histogram ( clock = self . _clock ) return self . _histograms [ key ]