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 web-flow committed Jul 7, 2022
1 parent 07008cf commit 31c4005
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 31c4005

Please sign in to comment.