How to evaluate the heap and stack size needed by my project?
Sherry0901 opened this issue · 2 comments
Sherry0901 commented
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?
zherczeg commented
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.
Sherry0901 commented
Thanks a lot! That's what I need.