Class PerformanceMetrics

  • All Implemented Interfaces:
    com.google.gerrit.server.logging.PerformanceLogger

    public class PerformanceMetrics
    extends Object
    implements com.google.gerrit.server.logging.PerformanceLogger
    Performance logger that records the execution times as a metric.
    • Field Detail

      • operationsLatency

        public final com.google.gerrit.metrics.Timer3<String,​String,​String> operationsLatency
      • operationsCounter

        public final com.google.gerrit.metrics.Counter3<String,​String,​String> operationsCounter
    • Method Detail

      • log

        public void log​(String operation,
                        long durationMs)
        Specified by:
        log in interface com.google.gerrit.server.logging.PerformanceLogger
      • log

        public void log​(String operation,
                        long durationMs,
                        com.google.gerrit.server.logging.Metadata metadata)
        Specified by:
        log in interface com.google.gerrit.server.logging.PerformanceLogger