stack high watermark in bytes now

This commit is contained in:
Robin Müller 2020-07-11 13:38:14 +02:00
parent 35d4267b40
commit e4f795d209
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ TaskHandle_t TaskManagement::getCurrentTaskHandle() {
return xTaskGetCurrentTaskHandle(); return xTaskGetCurrentTaskHandle();
} }
configSTACK_DEPTH_TYPE TaskManagement::getTaskStackHighWatermark( size_t TaskManagement::getTaskStackHighWatermark(
TaskHandle_t task) { TaskHandle_t task) {
return uxTaskGetStackHighWaterMark(task); return uxTaskGetStackHighWaterMark(task) * sizeof(StackType_t);
} }

View File

@ -57,7 +57,7 @@ public:
* @return Smallest value of stack remaining since the task was started in * @return Smallest value of stack remaining since the task was started in
* words. * words.
*/ */
static configSTACK_DEPTH_TYPE getTaskStackHighWatermark( static size_t getTaskStackHighWatermark(
TaskHandle_t task = nullptr); TaskHandle_t task = nullptr);
}; };