Shawn Hymel<p>Zephyr provides k_thread_stack_space_get() and sys_heap_runtime_stats_get() for real-time memory monitoring, which can help you detect memory leaks. <br>See my tutorial to see how to use them: <a href="https://shawnhymel.com/2830/monitoring-stack-and-heap-usage-in-zephyr-how-to-detect-memory-leaks/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">shawnhymel.com/2830/monitoring</span><span class="invisible">-stack-and-heap-usage-in-zephyr-how-to-detect-memory-leaks/</span></a></p><p><a href="https://masto.ai/tags/Zephyr" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Zephyr</span></a> <a href="https://masto.ai/tags/RTOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RTOS</span></a> <a href="https://masto.ai/tags/embedded" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>embedded</span></a> <a href="https://masto.ai/tags/ESP32" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ESP32</span></a> <span class="h-card" translate="no"><a href="https://social.lfx.dev/@zephyr" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>zephyr</span></a></span></p>