# Is it possible to get the current memory usage in Arcade?

**URL:** <https://forum.makecode.com/t/is-it-possible-to-get-the-current-memory-usage-in-arcade/2961>\
**Category:** Help\
**Created:** [July 30, 2020, 6:52pm UTC](https://forum.makecode.com/t/is-it-possible-to-get-the-current-memory-usage-in-arcade/2961 "2020-07-30T18:52:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [July 30, 2020, 6:52pm UTC](https://forum.makecode.com/t/is-it-possible-to-get-the-current-memory-usage-in-arcade/2961/1 "2020-07-30T18:52:19Z")

</div>

As the title says, is it possible to get the current memory used in Arcade? (Typescript is fine, but can you do it in Python too? I want to learn Python for Arcade because I’m good at Python…)

And also, is there like a formula for calculating how much memory would be used? Like one 16×16 tile would be 256 bytes (Actually, I’m probably not correct how tilemaps are used, so someone much smarter than me can correct me)? And one sprite would be 20 bytes + image size? And image size (in bytes) would be length × width?

And does Arcade need 92KB of RAM by itself?

Oh, that was a lot of questions…

---

<div class="post-metadata">

**Author:** ![jacob\_c](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jacob_c/32/1532_2.png) [@jacob\_c](https://forum.makecode.com/u/jacob_c)\
**Post date:** [July 30, 2020, 7:16pm UTC](https://forum.makecode.com/t/is-it-possible-to-get-the-current-memory-usage-in-arcade/2961/2 "2020-07-30T19:16:43Z")

</div>

I remember seeing this thread awhile ago: [Memory Tools in MakeCode Arcade](https://forum.makecode.com/t/memory-tools-in-makecode-arcade/499/4)… which links to this documentation: [https://makecode.com/js/profiling#profiling-memory](https://makecode.com/js/profiling#profiling-memory)

I don’t know if this still reflects the state-of-the-art for memory profiling in arcade.

… oh, and I just remembered I think I happened to see @mmoskal demoing it once (a small clip buried inside of a much longer video): [https://youtu.be/BOzQkxohTIs?t=343](https://youtu.be/BOzQkxohTIs?t=343)

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [July 30, 2020, 7:43pm UTC](https://forum.makecode.com/t/is-it-possible-to-get-the-current-memory-usage-in-arcade/2961/3 "2020-07-30T19:43:05Z")

</div>

> [@jacob\_c](#):
>
> … oh, and I just remembered I think I happened to see @mmoskal demoing it once (a small clip buried inside of a much longer video): [https://youtu.be/BOzQkxohTIs?t=343](https://youtu.be/BOzQkxohTIs?t=343)

Ahh, thank you so much for the video! I saw that before and put it in my program, but I didn’t see it in the console (Arcade one, where you can log stuff, not the browser one) so I gave up on that.

---

<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:** [July 30, 2020, 8:08pm UTC](https://forum.makecode.com/t/is-it-possible-to-get-the-current-memory-usage-in-arcade/2961/4 "2020-07-30T20:08:31Z")

</div>

The memory dump on console from the videos lists correct sizes for hardware. Images are half byte per pixel plus a few bytes of overhead.

Arcade uses two screen buffers 10k each. There is also a few k for sound support, and a few more for low level system stuff. Most of the rest is for the user program. For realistic games 96k works out to enough.
