Function to return SRAM usage?

I’ve written some pretty epic code for my Artemis-based datalogger projects, and am starting to wonder if I will run out of SRAM. There are a growing number of bad practise things like global variables, non F()'d strings and use of String objects…

The “freeMemory()” function from AVR micros would be perfect, but there doesn’t seem to be an equivalent for Apollo3.

For the record, some talk about RAM used at start time is here: https://github.com/sparkfun/Arduino_Apollo3/issues/121

and according to this Issue on the Github/core, it should come out in the next core update https://github.com/sparkfun/Arduino_Apollo3/pull/125