feat: Enable FreeRTOS CPU runtime stats, increase cmd_task stack to 6KB
Enable CONFIG_FREERTOS_USE_TRACE_FACILITY and CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS so PROFILE command reports per-task CPU usage. Increase cmd_task stack from 4KB to 6KB — was down to 516 bytes free with current PROFILE reply size.
This commit is contained in:
@@ -1302,7 +1302,7 @@ void app_main()
|
||||
#endif
|
||||
wifi_ping_router_start();
|
||||
|
||||
xTaskCreate(cmd_task, "cmd_task", 4096, NULL, 5, NULL);
|
||||
xTaskCreate(cmd_task, "cmd_task", 6144, NULL, 5, NULL);
|
||||
xTaskCreate(adaptive_task, "adaptive", 3072, NULL, 3, NULL);
|
||||
|
||||
/* OTA rollback: mark firmware valid if we got this far */
|
||||
|
||||
@@ -35,6 +35,7 @@ CONFIG_COMPILER_OPTIMIZATION_PERF=y
|
||||
# FreeRTOS
|
||||
#
|
||||
CONFIG_FREERTOS_HZ=1000
|
||||
CONFIG_FREERTOS_USE_TRACE_FACILITY=y
|
||||
CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y
|
||||
CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y
|
||||
|
||||
|
||||
Reference in New Issue
Block a user