test
Fork of mbed-dev by
Diff: platform/mbed_alloc_wrappers.cpp
- Revision:
- 152:9a67f0b066fc
- Parent:
- 149:156823d33999
- Child:
- 160:d5399cc887bb
diff -r 5eaa88a5bcc7 -r 9a67f0b066fc platform/mbed_alloc_wrappers.cpp --- a/platform/mbed_alloc_wrappers.cpp Thu Nov 24 17:03:03 2016 +0000 +++ b/platform/mbed_alloc_wrappers.cpp Thu Dec 15 11:48:27 2016 +0000 @@ -57,6 +57,9 @@ void mbed_stats_heap_get(mbed_stats_heap_t *stats) { #ifdef MBED_HEAP_STATS_ENABLED + extern uint32_t mbed_heap_size; + heap_stats.reserved_size = mbed_heap_size; + malloc_stats_mutex->lock(); memcpy(stats, &heap_stats, sizeof(mbed_stats_heap_t)); malloc_stats_mutex->unlock();