FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [January 2017 Threads]
I would like to retrieve the total system runtime without needing to allocate memory for a TaskStatus_t for every task in my system. However, the current implementation of uxTaskGetSystemState has the code to set the total runtime inside the check for uxArraySize, so that if you don't provide the array, you also don't get the runtime. For a future release, could the runtime be set outside of this check, so that I could do uxTaskGetSystemState (NULL, 0, &runtime) and get just the runtime? Or perhaps another accessor function could be added to get this value.
Thank you!
The counter obtained using the method is a high speed clock provided by
the user. If you just want the run time without apportioning the total
time to individual tasks you could just read the tick count value. If
you system runs for a very long time you would also have to counter
overflows.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.