f
Size: a a a
f
f
count_alloc(|| {
let mut m = HashMap::<&'static str, &'static str, _>::new();
m.insert("a", "b");
m
});
t
f
f
#[global_allocator]
static A: AllocCounterSystem = AllocCounterSystem;
t
c
f
t
f
allocs: 1, reallocs: 0, deallocs: 0, map: {"a": "b"}
t
t
let ((alloc, realloc, dealloc), map) =
c
f
f
let ((alloc, realloc, dealloc), map) =
c
t
f
f
(1, 0, 0)