Hello,
I am trying to understand how I could properly profile my application to see the stack and heap usage for my program. I have looked through the option but I don't see any setting for profiling.
Could someone let me know how to do this
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I am trying to understand how I could properly profile my application to see the stack and heap usage for my program. I have looked through the option but I don't see any setting for profiling.
Could someone let me know how to do this
Hi Desmond,
Z-Stack doesn't support stack profiling. For heap monitoring, you can use the functions including osal_heap_block_max(), osal_heap_block_cnt(), osal_heap_block_free(), and osal_heap_mem_used() if you set OSALMEM_METRICS in the compiler option. You will find several posts regarding those functions if you search this forum.
- Cetri
Hey Cetri,
I will take a look at that. But is there a profiling options as similar to what gcc provides?
Hi Desmond,
I think IAR's stack tracking feature might be useful to you. To enable it, go to Tools->Options->Stack and check 'Enable graphical stack display and stack usage tracking'. For more details, please contact IAR.
- Cetri