In various places, we store 'size' in units of bytes, which tend to be printed as big numbers, or rounded-off to print in MiB, GiB etc.
This issue is logged to add facilities to print such values in a user-output buffers with unit-specifiers. The print method should take care of using the appropriate unit-specifiers.
Examples: Print 1024 as 1 KiB, Print 2048 as 2 MiB and so on.
Print, e.g, 1280 bytes as 1.25 KiB. Rather than printing big values, instead print something like 1.75 GiB.
This convenience function was developed in a prototype dev-project and found to be useful for debugging and diagnostics.
Productize and integrate this to /main.
In various places, we store 'size' in units of bytes, which tend to be printed as big numbers, or rounded-off to print in
MiB,GiBetc.This issue is logged to add facilities to print such values in a user-output buffers with unit-specifiers. The print method should take care of using the appropriate unit-specifiers.
Examples: Print 1024 as
1 KiB, Print 2048 as2 MiBand so on.Print, e.g, 1280 bytes as
1.25 KiB. Rather than printing big values, instead print something like1.75 GiB.This convenience function was developed in a prototype dev-project and found to be useful for debugging and diagnostics.
Productize and integrate this to
/main.