Use this library to check your SRAM / Stack memory usage.
Some different ways to check memory usage on an Arduino.
Maintainer: Thierry PARIS - Locoduino
This library is compatible with the avr architecture so you should be able to use it on the following Arduino boards:
To use this library, open the Library Manager in the Arduino IDE and install it from there.