embedded-alloc icon indicating copy to clipboard operation
embedded-alloc copied to clipboard

Can you add a way to calculate the max heap used?

Open patnir1 opened this issue 1 year ago • 2 comments

At the moment you provide heap.used() but i need something like heap.maxUsed() to validate some of the code that we are working with can work on certain device types

patnir1 avatar Sep 04 '24 23:09 patnir1

This could be done in this crate, but it would make more sense to add them in the underlying alloc crates.

newAM avatar Sep 06 '24 03:09 newAM

This can be done with trallocator https://crates.io/crates/trallocator as it can easily wrap embedded-alloc.

dragonnn avatar Jan 27 '25 07:01 dragonnn

Based on the answers provided here, I'm closing this.

zeenix avatar Aug 20 '25 19:08 zeenix