# Read free memory at runtime

**URL:** <https://forum.makecode.com/t/read-free-memory-at-runtime/919>\
**Category:** micro:bit\
**Created:** [December 18, 2019, 9:59pm UTC](https://forum.makecode.com/t/read-free-memory-at-runtime/919 "2019-12-18T21:59:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@Sam](https://forum.makecode.com/u/Sam)\
**Post date:** [December 18, 2019, 9:59pm UTC](https://forum.makecode.com/t/read-free-memory-at-runtime/919/1 "2019-12-18T21:59:54Z")

</div>

Anyway of reading available RAM at runtime? The Python forums suggested reading heap size but I don’t see a way of doing that with makecode/JavaScript.

---

<div class="post-metadata">

**Author:** ![mmoskal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mmoskal/32/20_2.png) [@mmoskal](https://forum.makecode.com/u/mmoskal)\
**Post date:** [December 19, 2019, 11:09pm UTC](https://forum.makecode.com/t/read-free-memory-at-runtime/919/2 "2019-12-19T23:09:20Z")

</div>

There’s support for `control.gcStats()` coming soon to Arcade. Not sure if and when it will land in microbit.

See [https://github.com/microsoft/pxt/pull/6384/commits/f34525db059612a05bda60ebc302fb4b52bc80b1](https://github.com/microsoft/pxt/pull/6384/commits/f34525db059612a05bda60ebc302fb4b52bc80b1)
