code: public void outputIntervalHistogram(final double startTimeStampSec,
                                          final double endTimeStampSec,
                                          final EncodableHistogram histogram,
                                          final double maxValueUnitRatio) {
          if ((targetBuffer == null) || targetBuffer.capacity() < histogram.getNeededByteBufferCapacity()) {
              targetBuffer = ByteBuffer.allocate(histogram.getNeededByteBufferCapacity()).order(BIG_ENDIAN);
          }
          targetBuffer.clear();
  
          int compressedLength = histogram.encodeIntoCompressedByteBuffer(targetBuffer, Deflater.BEST_COMPRESSION);
          byte[] compressedArray = Arrays.copyOf(targetBuffer.array(), compressedLength);
  
          log.format(Locale.US, "%.3f,%.3f,%.3f,%s\n",
                  startTimeStampSec,
                  endTimeStampSec - startTimeStampSec,
                  histogram.getMaxValueAsDouble() / maxValueUnitRatio,
                  DatatypeConverter.printBase64Binary(compressedArray)
          );
      }
docs: Output an interval histogram, with the given timestamp and a configurable maxValueUnitRatio.
  (note that the specified timestamp will be used, and the timestamp in the actual
  histogram will be ignored).
  The max value reported with the interval line will be scaled by the given maxValueUnitRatio.
  @param startTimeStampSec The start timestamp to log with the interval histogram, in seconds.
  @param endTimeStampSec The end timestamp to log with the interval histogram, in seconds.
  @param histogram The interval histogram to log.
  @param maxValueUnitRatio The ratio by which to divide the histogram's max value when reporting on it.