Skip to content

Commit

Permalink
[DGSW] Populate other thread fields (#19752)
Browse files Browse the repository at this point in the history
- stackSize
- stackFreeCurrent
  • Loading branch information
pankore authored and pull[bot] committed Sep 22, 2023
1 parent 76df4e9 commit 1043298
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/platform/Ameba/DiagnosticDataProviderImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1043298

Please sign in to comment.