Hallo,
I am trying to use the vTaskGetRunTimeStats to display the task execution time in a tabular form.
First of all, should i call the function in the main function, like after the vTaskStartScheduler?
Secondly, what then do I have to do to see the tabular format ? Because from https://www.freertos.org/rtos-run-time-stats.html , it looks like on the example picture one has to put in an ip addresss or so.
I replied to this via email but the post didn’t show - apologies if it now shows up twice:
First of all, should i call the function in the main function, like after the vTaskStartScheduler?
No - nothing that appears vTaskStartScheduler() will ever be reached s(assuming vTaskStartScheduler() actually starts the scheduler - which will be the case unless you run out of heap when creating the idle and/or timer tasks) so it won’t execute if you put it there.
It should be called from whichever task you want to print the stats.
Secondly, what then do I have to do to see the tabular format ? Because from FreeRTOS Run Time Stats , it looks like on the example picture one has to put in an ip addresss or so.
First of all, should i call the function in the main function, like
after the vTaskStartScheduler?
No - nothing that appears vTaskStartScheduler() will ever be reached
s(assuming vTaskStartScheduler() actually starts the scheduler - which
will be the case unless you run out of heap when creating the idle
and/or timer tasks) so it won’t execute if you put it there.
It should be called from whichever task you want to print the stats.
Secondly, what then do I have to do to see the tabular format ? Because
from FreeRTOS Run Time Stats , it looks like
on the example picture one has to put in an ip addresss or so.
I replied to this via email but the post didn’t show - apologies if it now
shows up twice:
First of all, should i call the function in the main function, like after
the vTaskStartScheduler?
No - nothing that appears vTaskStartScheduler() will ever be reached
s(assuming vTaskStartScheduler() actually starts the scheduler - which will
be the case unless you run out of heap when creating the idle and/or timer
tasks) so it won’t execute if you put it there.
It should be called from whichever task you want to print the stats.
Secondly, what then do I have to do to see the tabular format ? Because
from FreeRTOS Run Time Stats , it looks like on
the example picture one has to put in an ip addresss or so.