From a4469f16f03c8b9b3db9f395b17b766a7b841aba Mon Sep 17 00:00:00 2001 From: pankore <86098180+pankore@users.noreply.github.com> Date: Fri, 17 Jun 2022 18:58:38 +0800 Subject: [PATCH] [DGSW] Populate other thread fields - stackSize - stackFreeCurrent --- src/platform/Ameba/DiagnosticDataProviderImpl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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;