Go to the documentation of this file.
24 return &top -
reinterpret_cast<char*
>(sbrk(0));
25 #elif defined(CORE_TEENSY) || (ARDUINO > 103 && ARDUINO != 151)
36 return String(
"FREE SRAM");
52 const String FreeMemoryMeasurement::getLogID()
const {
56 const String FreeMemoryMeasurement::getLogDescription()
const {
68 return fce->second(*
this);
72 return String(freeMemoryMeasurement.
getFreeRAM());
static FreeMemoryMeasurement * instance
the instance of the class
std::map< int, String(*)(const FreeMemoryMeasurement &freeMemoryMeasurement)> htmlData
A map of different values (keys) and their associated functions which returns the appropriate values.
const String getRow(int row) const override
Returns the content of the row given as a parameter.
FreeMemoryMeasurement()
Constructor of the class.
friend String HTML_freeRAM(const FreeMemoryMeasurement &freeMemoryMeasurement)
Associated function for returing amount of memory being used at the moment.
static const String UNDEFINED_DATA
string "UNDEFINED"
static FreeMemoryMeasurement * getInstance()
Returns the instance of the class.
const String getHTMLData(const int id) const override
Since this class is registered as a source of data for the HTML content, it needs return the appropri...
int getFreeRAM() const
Return the amount of RAM currently being used.