Track SPIRAM allocations separately as a 4th type

This commit is contained in:
Stephen Casner 2018-01-08 17:29:47 -08:00
parent 4c7d425f8f
commit 050b09719e
2 changed files with 3 additions and 1 deletions

View File

@ -51,6 +51,8 @@ size_t esp_heap_debug_dump_totals(heap_dump_totals_t* totals, size_t* ntotal, si
++type;
if (!(caps & MALLOC_CAP_8BIT))
++type;
if (caps & MALLOC_CAP_SPIRAM)
type = 3;
b = &meta->first_block;
multi_heap_internal_lock(meta);
while (b && remaining > 0) {

View File

@ -7,7 +7,7 @@
extern "C" {
#endif
#define NUM_USED_TYPES 3
#define NUM_USED_TYPES 4
typedef struct {
TaskHandle_t task;