]> git.lizzy.rs Git - rust.git/commitdiff
Print sizes in allocation dumps.
authorScott Olson <scott@solson.me>
Wed, 6 Apr 2016 23:33:24 +0000 (17:33 -0600)
committerScott Olson <scott@solson.me>
Wed, 6 Apr 2016 23:33:24 +0000 (17:33 -0600)
src/memory.rs

index c4f12804c8346cae70a00b782a07c4bf479688a4..b41cd7760b0c133dbc7cff73036bcb719ff3e61b 100644 (file)
@@ -178,7 +178,7 @@ pub fn dump(&self, id: AllocId) {
                     print!("__ ");
                 }
             }
-            println!("");
+            println!("({} bytes)", alloc.bytes.len());
 
             if !relocations.is_empty() {
                 print!("{:1$}", "", prefix.len()); // Print spaces.