Function mmtk::util::conversions::bytes_to_formatted_string
source · pub fn bytes_to_formatted_string(bytes: usize) -> String
Expand description
Convert size in bytes to a readable short string, such as 1GB, 2TB, etc. It only keeps the major unit and keeps no fraction.