Memory map

Hello everyone. I'm not a newbie to Arduino and I've not looked through the net for anything like this.

What I'd like to get my hands on is something I could use to map the RAM of my Arduino/Teensy/Feather.. what have you.

I'd like a function that, given an address, passes back : Stack, Free or Allocated. Then whever you wanted you could loop through and save it to an SD drive, or out the serial port or even draw your Memory map to a TFT screen.

Just think how it would stop all the fighting about trhe String class. You could just map your RAM and see if its getting messed up or not.

Anyone up for writing this function?

-jim lee