summaryrefslogtreecommitdiff
path: root/src/app_console/app_console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app_console/app_console.cpp')
-rw-r--r--src/app_console/app_console.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app_console/app_console.cpp b/src/app_console/app_console.cpp
index 2d287e5d..55b51690 100644
--- a/src/app_console/app_console.cpp
+++ b/src/app_console/app_console.cpp
@@ -26,6 +26,7 @@
#include "esp_console.h"
#include "esp_intr_alloc.h"
#include "esp_log.h"
+#include "esp_system.h"
#include "event_queue.hpp"
#include "ff.h"
#include "freertos/FreeRTOSConfig_arch.h"
@@ -427,6 +428,11 @@ int CmdTaskStats(int argc, char** argv) {
delete[] start_status;
delete[] end_status;
+ std::cout << "heap stats:" << std::endl;
+ std::cout << (esp_get_free_heap_size() / 1024) << " KiB free" << std::endl;
+ std::cout << (esp_get_minimum_free_heap_size() / 1024)
+ << " KiB free at lowest" << std::endl;
+
return 0;
}