We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25b05a1 commit 3d82f3cCopy full SHA for 3d82f3c
platform/source/mbed_alloc_wrappers.cpp
@@ -76,6 +76,11 @@ void mbed_stats_heap_get(mbed_stats_heap_t *stats)
76
extern uint32_t mbed_heap_size;
77
heap_stats.reserved_size = mbed_heap_size;
78
79
+#if defined(MBED_SPLIT_HEAP)
80
+ extern uint32_t mbed_heap_size_0;
81
+ heap_stats.reserved_size += mbed_heap_size_0;
82
+#endif
83
+
84
malloc_stats_mutex->lock();
85
memcpy(stats, &heap_stats, sizeof(mbed_stats_heap_t));
86
malloc_stats_mutex->unlock();
0 commit comments