ladislas
(Ladislas de Toldi)
1
Hi all –
To get a better understanding of our system, we recently turned on Mbed statistics for heap, stack and cpu.
https://os.mbed.com/docs/mbed-os/v6.15/apis/mbed-statistics.html
Looking at the code, I’m not sure I understand the difference between current
, max
, total
, reserved
as seen here:
and here:
What does reserved
mean in case of stack and heap? What about max
?
Thanks a lof for your kind help 
Best,
– Ladislas
ladislas
(Ladislas de Toldi)
2
Okay, I think I’ve got the solutions.
Digging deeper into:
I’ve come to the conclusion that the naming is a bit misleading.
Regarding stack:
Regarding heap:
2 Likes
ladislas
(Ladislas de Toldi)
3
Well actually, stack::max_size
seems to really be max_size
.
I wonder if it’s possible to have the current stack size.