Hi,
We need help in getting an system call / API in Zephyr which updates the consumption of memory ram and flash
can you please suggest any mechanism which verifies memory consumed during run time
Hi,
We need help in getting an system call / API in Zephyr which updates the consumption of memory ram and flash
can you please suggest any mechanism which verifies memory consumed during run time
Hi again,
Check out using:
CONFIG_THREAD_NAME=y
CONFIG_THREAD_ANALYZER=y
CONFIG_THREAD_ANALYZER_AUTO=y
CONFIG_THREAD_ANALYZER_RUN_UNLOCKED=y
CONFIG_THREAD_ANALYZER_USE_PRINTK=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_PRINTK=y
Then the stack usage for all threads are printed.
Kenneth
Hi,
We also need an api / syscall to be used for reading memory usage during run time can you pls share more towards if zephyr provides any
Thank you
Maybe looking at the way thread analyzer does it give some guideance:
https://github.com/zephyrproject-rtos/zephyr/blob/main/subsys/debug/thread_analyzer.c
Kenneth
Maybe looking at the way thread analyzer does it give some guideance:
https://github.com/zephyrproject-rtos/zephyr/blob/main/subsys/debug/thread_analyzer.c
Kenneth