mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-27 12:26:24 +00:00
Add FreeRTOS per-task mem usage reporting
This commit is contained in:
1 parent
76a9853b12
commit
bbdd24d7f8
7 files changed
+201
-10
No files matched your search
@@ -165,6 +165,7 @@ standard names. */
|
||||
#define USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION 0
|
||||
|
||||
/* USER CODE BEGIN Defines */
|
||||
#define INCLUDE_xTaskGetIdleTaskHandle 1
|
||||
/* Section where parameter definitions can be added (for instance, to override default ones in FreeRTOS.h) */
|
||||
/* USER CODE END Defines */
|
||||
|
||||
|
||||
@@ -13,6 +13,10 @@
|
||||
#define MG_HEALTH_HEAP_TOTAL ((size_t) configTOTAL_HEAP_SIZE)
|
||||
#define MG_HEALTH_HEAP_USED (MG_HEALTH_HEAP_TOTAL - xPortGetFreeHeapSize())
|
||||
|
||||
// Per-task totals in bytes
|
||||
size_t app_task_stack_total(TaskHandle_t task);
|
||||
#define MG_HEALTH_TASK_STACK_TOTAL(task) app_task_stack_total(task)
|
||||
|
||||
// Ethernet driver tunables:
|
||||
// #define MG_DRIVER_MDC_CR 4 // RMII MDC clock divider, from 0 to 5
|
||||
// #define MG_TCPIP_PHY_ADDR 0 // PHY address
|
||||
|
||||
Reference in new issue
Block a user