Class Metrics

java.lang.Object
com.atlassian.util.profiling.Metrics

@Internal @ParametersAreNonnullByDefault public class Metrics extends Object
Factory and utility methods for creating MetricTimer, LongRunningMetricTimer, and Histogram. Please move to using the builder.

     try (Ticker autoclosed = Metrics.metric("my-timer").startTimer()) {
         // monitored code block here
     }
 
Since:
3.0.0