Hello, I've implemented a mechanism to track the peak allocated bytes by malloc during a section of code: https://github.com/raspberrypi/pico-sdk/pull/1755 The contributing guidelines indicated that there needs to be an issue corresponding to each PR.