@Override
    public String toString() {
        return String.format("RecordValidationStats(temporaryMemoryBytes=%d, numRecordsConverted=%d, conversionTimeNanos=%d)",
                temporaryMemoryBytes, numRecordsConverted, conversionTimeNanos);
    }
Returns the number of temporary memory bytes allocated to process the records.
This size depends on whether the records need decompression and/or conversion:
<ul>
  <li>Non compressed, no conversion: zero</li>
  <li>Non compressed, with conversion: size of the converted buffer</li>
  <li>Compressed, no conversion: size of the original buffer after decompression</li>
  <li>Compressed, with conversion: size of the original buffer after decompression + size of the converted buffer uncompressed</li>
</ul>
clients/src/main/java/org/apache/kafka/common/record/RecordValidationStats.java