diff --git a/src/platform/Ameba/DiagnosticDataProviderImpl.cpp b/src/platform/Ameba/DiagnosticDataProviderImpl.cpp index 58f7a41cb326c9..110e9cb4c1b4d8 100644 --- a/src/platform/Ameba/DiagnosticDataProviderImpl.cpp +++ b/src/platform/Ameba/DiagnosticDataProviderImpl.cpp @@ -93,9 +93,8 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetThreadMetrics(ThreadMetrics ** threadM thread->id = taskStatusArray[x].xTaskNumber; thread->stackFreeMinimum.Emplace(taskStatusArray[x].usStackHighWaterMark); - /* Unsupported metrics */ - // thread->stackSize; - // thread->stackFreeCurrent; + thread->stackSize.Emplace(uxTaskGetStackSize(taskStatusArray[x].xHandle)); + thread->stackFreeCurrent.Emplace(uxTaskGetFreeStackSize(taskStatusArray[x].xHandle)); thread->Next = head; head = thread;