print stack watermarks in sysinfo page

This commit is contained in:
technyon
2023-02-26 11:55:35 +01:00
parent 8b647e8b8e
commit 8fd17206dd
4 changed files with 26 additions and 5 deletions

View File

@@ -785,6 +785,14 @@ void WebCfgServer::buildInfoHtml(String &response)
response.concat(esp_get_free_heap_size());
response.concat("\n");
response.concat("Stack watermarks: nw: ");
response.concat(uxTaskGetStackHighWaterMark(networkTaskHandle));
response.concat(", nuki: ");
response.concat(uxTaskGetStackHighWaterMark(nukiTaskHandle));
response.concat(", pd: ");
response.concat(uxTaskGetStackHighWaterMark(presenceDetectionTaskHandle));
response.concat("\n");
response.concat("Restart reason FW: ");
response.concat(getRestartReason());
response.concat( "\n");