Closed Sherry0901 closed 2 years ago
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.
jerry_heap_stats
--mem-stats on
Thanks a lot! That's what I need.
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?