Example to demonstrate usage of mbed_stats_stack_get_each API

Fork of heap_stats_example by mbed_example

main.cpp

Committer:
deepikabhavnani
Date:
2018-05-25
Revision:
0:a5479359bf28
Child:
2:cbb9a9884f45

File content as of revision 0:a5479359bf28:

#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);
    }
}