/**
  * Writes all statistics using the provided writer
  *
  * @param out The writer to print stats to.
  */
 public static void printStats(PrintWriter out) {
   if (!ENABLED) return;
   PerformanceStatsProcessor.printStats(out);
 }
 /** Prints all statistics to the standard output. */
 public static void printStats() {
   if (!ENABLED) return;
   PrintWriter writer = new PrintWriter(System.out);
   PerformanceStatsProcessor.printStats(writer);
   writer.flush();
 }