Skip to content

Commit

Permalink
added line to update peak memory usage when allocation grows in place
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron-Hodel committed Feb 23, 2025
1 parent d0127de commit 20e076c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/mem/allocators.odin
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ arena_resize_bytes_non_zeroed :: proc(
}

a.offset = new_offset
a.peak_used = max(a.peak_used, a.offset)
return a.data[old_data_offset:][:size], nil
} else {
if size == 0 {
Expand Down

0 comments on commit 20e076c

Please sign in to comment.