Skip to content

Commit

Permalink
track memory arena memory usage
Browse files Browse the repository at this point in the history
  • Loading branch information
PSeitz committed Aug 16, 2023
1 parent 62ece86 commit 1089551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stacker/src/arena_hashmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl ArenaHashMap {

#[inline]
pub fn mem_usage(&self) -> usize {
self.table.len() * mem::size_of::<KeyValue>()
self.table.len() * mem::size_of::<KeyValue>() * self.memory_arena.mem_usage()
}

#[inline]
Expand Down

0 comments on commit 1089551

Please sign in to comment.