protected void reportMetricsIfNeeded(){
  if (getGatherPerformanceMetrics()) {
    if ((System.currentTimeMillis() - this.metricsLastReportedMs) > getReportMetricsIntervalMillis()) {
      reportMetrics();
    }
  }
}

protected void reportMetricsIfNeeded ( ) { if ( getGatherPerformanceMetrics ( ) ) { if ( ( System . currentTimeMillis ( ) - this . metricsLastReportedMs ) > getReportMetricsIntervalMillis ( ) ) { reportMetrics ( ) ; } } }
reports currently collected metrics if this feature is enabled and the timeout has passed .
