docs: public static void saveHistogram(Histogram histogram, String filename) throws IOException {
      File file;
      PrintStream log = null;
      try {
        file = new File(filename);
        if (file.exists() && !file.delete()) {
          System.err.println("Failed deleting previous histogram file: " + file.getAbsolutePath());
        }
        log = new PrintStream(new FileOutputStream(file), false);
        histogram.outputPercentileDistribution(log, 1.0);
      } finally {
        if (log != null) {
          log.close();
        }
      }
    }