feat: Add PROFILE command — heap, stack watermarks, CPU runtime stats

- PROFILE command returns heap usage (free/min/dram/iram),
  per-task stack high watermark, and per-task CPU % (when
  CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS is enabled)
- Enable FreeRTOS runtime stats in sdkconfig.defaults
- Enlarge cmd reply buffer to 1400 bytes for multi-line output
- Add esp_heap_caps.h include
This commit is contained in:
user
2026-02-04 17:59:30 +01:00
parent 3681568238
commit 7ec70a653d
2 changed files with 53 additions and 1 deletions

View File

@@ -35,6 +35,8 @@ CONFIG_COMPILER_OPTIMIZATION_PERF=y
# FreeRTOS
#
CONFIG_FREERTOS_HZ=1000
CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y
CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y
#
# ESP32-specific