maniacbug / MemoryFree

Arduino MemoryFree library. Hosting it on github for easy access
http://www.arduino.cc/playground/Code/AvailableMemory
63 stars 54 forks source link

Official IDE already shows free SRAM memory in every compilation #3

Closed q2dg closed 9 years ago

q2dg commented 9 years ago

So...I don't know if this library has still some reason to exist...hasn't it?

per1234 commented 9 years ago

1) IDE shows SRAM used by global variables only, MemoryFree returns total SRAM usage(global and local variables). 2) Through dynamic memory allocation(malloc et al) even global variable memory usage can change while the program is running. 3) It is often useful to determine the free memory while the program is running instead of only at compile time. I use this library for detecting memory leaks.

q2dg commented 9 years ago

Aaah, ok, I see. Thanks a lot!