jerryscript-project/jerryscript

How to evaluate the heap and stack size needed by my project?

Sherry0901 opened this issue · 2 comments

Hi!
I am using jerryscript in my project.
I need to evaluate the memory resources required by my application in order to adjust the hardware resources.
Can jerry calculate and show the heap size needed by running a JS file?

Yes. There is a jerry_heap_stats API in jerryscript.h. You can also pass --mem-stats on to the command line interpreter to check the values.

Thanks a lot! That's what I need.