Source

metrics-clojure / metrics-clojure-core / src / metrics / histograms.clj

Diff from to

metrics-clojure-core/src/metrics/histograms.clj

      ^MetricName (metric-name title)
      (boolean biased))))
 
+(defmacro defhistogram [title & args]
+  "Define a Histogram metric with the given title."
+  `(def ~title
+     (histogram ~@(cons (str title) args))))
+
 
 ; Read ------------------------------------------------------------------------
 (defn mean