Package com.google.gerrit.server
Class PerformanceMetrics
- java.lang.Object
-
- com.google.gerrit.server.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 Summary
Fields Modifier and Type Field Description com.google.gerrit.metrics.Counter3<String,String,String>
operationsCounter
com.google.gerrit.metrics.Timer3<String,String,String>
operationsLatency
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
log(String operation, long durationMs)
void
log(String operation, long durationMs, com.google.gerrit.server.logging.Metadata metadata)
-
-
-
Method Detail
-
log
public void log(String operation, long durationMs)
- Specified by:
log
in interfacecom.google.gerrit.server.logging.PerformanceLogger
-
log
public void log(String operation, long durationMs, com.google.gerrit.server.logging.Metadata metadata)
- Specified by:
log
in interfacecom.google.gerrit.server.logging.PerformanceLogger
-
-