Skip to content

Commit 1043298

Browse files
pankorepull[bot]
authored andcommitted
[DGSW] Populate other thread fields (#19752)
- stackSize - stackFreeCurrent
1 parent 76df4e9 commit 1043298

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/platform/Ameba/DiagnosticDataProviderImpl.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,8 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetThreadMetrics(ThreadMetrics ** threadM
9393
thread->id = taskStatusArray[x].xTaskNumber;
9494

9595
thread->stackFreeMinimum.Emplace(taskStatusArray[x].usStackHighWaterMark);
96-
/* Unsupported metrics */
97-
// thread->stackSize;
98-
// thread->stackFreeCurrent;
96+
thread->stackSize.Emplace(uxTaskGetStackSize(taskStatusArray[x].xHandle));
97+
thread->stackFreeCurrent.Emplace(uxTaskGetFreeStackSize(taskStatusArray[x].xHandle));
9998

10099
thread->Next = head;
101100
head = thread;

0 commit comments

Comments
 (0)