malloc_stats()

Displays infomation about dynamic memory usage. You can alocate memory dynamicaly using malloc() function. Function uses Serial0 as output device, you have to initialize Serial0 usind begin() method. malloc_stats()
nothing nothing
		

#include <malloc.h>

void setup() {
	Serial0.begin(115200);// Prepare Serial0
}

void loop() {
	malloc_stats(); // prints dynamic memory statistics
	Serial0.println(); 
	delay(1000);
}