Queue and RAM usage #1401
-
Hi folks, Really enjoying this core, but I'm just wondering about something. I'm using the pico util queue and compiling the following code with arduino-cli.
Both QUEUE_SIZE of 5000 and QUEUE_SIZE of 10 show the following after successful compilation:
I'd imagine the queue init would allocate memory (which it does: q->data = (uint8_t *)calloc(element_count + 1, element_size); ). Is this allocated memory not reflected in the free memory shown after compilation? Is this an arduino-cli bug, perhaps it's being optimized away? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The report shows static allocations for global/statics, only. The |
Beta Was this translation helpful? Give feedback.
-
@RobertMorton56 , like earle mentioned, that build report will give you only global/statics. Try adding a |
Beta Was this translation helpful? Give feedback.
The report shows static allocations for global/statics, only.
The
calloc()
comes from the heap, which is runtime, and is not possible to report w/o actually, err, running the code.