Example to demonstrate memory trace functionality in Mbed OS
Fork of memory_tracing_example by
main.cpp
- Committer:
- deepikabhavnani
- Date:
- 2018-05-25
- Revision:
- 0:a5479359bf28
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); } }