Track SPIRAM allocations separately as a 4th type
This commit is contained in:
parent
4c7d425f8f
commit
050b09719e
|
@ -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) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define NUM_USED_TYPES 3
|
||||
#define NUM_USED_TYPES 4
|
||||
|
||||
typedef struct {
|
||||
TaskHandle_t task;
|
||||
|
|
Loading…
Reference in New Issue