From 1089551a70416a557a803e1f6f1f99f269b63fc7 Mon Sep 17 00:00:00 2001 From: Pascal Seitz Date: Wed, 16 Aug 2023 14:05:44 +0200 Subject: [PATCH] track memory arena memory usage --- stacker/src/arena_hashmap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stacker/src/arena_hashmap.rs b/stacker/src/arena_hashmap.rs index 254be2de3d..b1a209662b 100644 --- a/stacker/src/arena_hashmap.rs +++ b/stacker/src/arena_hashmap.rs @@ -164,7 +164,7 @@ impl ArenaHashMap { #[inline] pub fn mem_usage(&self) -> usize { - self.table.len() * mem::size_of::() + self.table.len() * mem::size_of::() * self.memory_arena.mem_usage() } #[inline]