[riot-notifications] [RIOT-OS/RIOT] sys/shell: add heap command (#10953)

Sebastian Meiling notifications at github.com
Mon Apr 15 11:18:45 CEST 2019


> > on ESP8266 it works, question: size is in HEX too, right? However, I think DEC is more natural to the user.
> 
> No, should be in decimal.

Output on esp8266:

```
> heap
2019-04-15 11:04:13,874 - INFO #  heap
2019-04-15 11:04:13,898 - INFO # heap: 64880 (used 660, free 64220) [bytes]
> malloc 10
2019-04-15 11:04:17,868 - INFO #  malloc 10
2019-04-15 11:04:17,868 - INFO # ptr=0x3ffec530
heap
2019-04-15 11:04:26,205 - INFO #  heap
2019-04-15 11:04:26,228 - INFO # heap: 64880 (used 676, free 64204) [bytes]
> malloc 20
2019-04-15 11:04:55,004 - INFO #  malloc 20
2019-04-15 11:04:55,007 - INFO # ptr=0x3ffec540
> heap
2019-04-15 11:04:57,693 - INFO #  heap
2019-04-15 11:04:57,717 - INFO # heap: 64880 (used 708, free 64172) [bytes]
```

`malloc 10` reduces heap by 16 and then `malloc 20` by 32, looks like HEX to me

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10953#issuecomment-483174690
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190415/765d1a7a/attachment-0001.html>


More information about the notifications mailing list