Example to demonstrate usage of mbed_stats_stack_get_each API

Fork of heap_stats_example by mbed_example

Revision:
0:a5479359bf28
Child:
2:cbb9a9884f45
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri May 25 19:53:46 2018 +0000
@@ -0,0 +1,13 @@
+#include <stdlib.h>
+#include "mbed.h"
+#include "mbed_mem_trace.h"
+
+
+int main() {
+    mbed_mem_trace_set_callback(mbed_mem_trace_default_callback);
+    while (true) {
+        void *p = malloc(50);
+        wait(0.5);
+        free(p);
+    }
+}