Skip to content
Snippets Groups Projects
Commit 4010e519 authored by Dorababu A's avatar Dorababu A
Browse files

Read memory usage

- reading memory usage using shepherd-task
parent e321e5d3
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,8 @@ static void shepherd_task(void *args) {
*/
printf("-----------------------------------------\n");
vTaskDelay(15000 / portTICK_PERIOD_MS);
// get memory usage
printf("Memory usage : %d bytes \n", (2048-uxTaskGetStackHighWaterMark(NULL)));
}
vTaskDelete(NULL);
}
......
......@@ -48,8 +48,8 @@ void run_time_stats(void *pvParameter) {
printf("--------Run time stats ---------------\n");
char pbuf[100];
vTaskGetRunTimeStats(pbuf);
printf("%s\r\n", pbuf);
printf("---------------------------------------\n");
printf("%s", pbuf);
printf("\n---------------------------------------\n");
vTaskDelay(15000 / portTICK_PERIOD_MS);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment