From b14e1f59258c65661151c988737bf2329befe6cd Mon Sep 17 00:00:00 2001 From: pankore <86098180+pankore@users.noreply.github.com> Date: Fri, 8 Jul 2022 03:53:05 +0800 Subject: [PATCH] [DGSW] Populate other thread fields (#19752) - 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;