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 2012 Threads] Suggestion for Task Profiling - Exec CntPosted by https://me.yahoo.com/a/Totshr9t on January 26, 2012 re: LPC1765
I got the Task Runtime Stats and Task List profiling setup and working very easy. That is great. Dumping everything out my UART0. However, the only parameter I miss is seeing a count on the number of times a task has been called - the execution count. Exec Time and Duty Cycle helps, but there are occasions where seeing the exact number of times a task has been run is of vital interest.
Just a suggestion.
Thanks, Chris.
RE: Suggestion for Task Profiling - Exec CntPosted by Richard Damon on January 26, 2012 Note that unless you are deleting the task and then recreating it, a given task is only run once. (and if you delete and recreate a task it really is a new task). Tasks normally have a loop inside of them, but that is outside of the view of FreeRTOS. If you want to keep trace of the number of time the task has looped, just add a counter in your code.
RE: Suggestion for Task Profiling - Exec CntPosted by Dave on January 26, 2012 I read the OP to mean a count of the number of times the task is scheduled to run, so if it moves from Block to Running state the counter would increment. Is that right? If so, it sounds like a good idea although it would add a bit to the context switch code, you should add it to the features request tracker in sourceforge.
It could be done using trace macros too.
RE: Suggestion for Task Profiling - Exec CntPosted by https://me.yahoo.com/a/Totshr9t on January 27, 2012 I wrote my own Performance Monitor module for FreeRTOS a few years ago, because it did not have one at the time. There is an easy way to keep track of how many times a task runs. It is really the same kind of thing as keeping track of how much time is spent in a task. If you can do that, you already have all the info necessary to know how many times it has run. It is automatic. Most other RTOS performance monitors all have this feature.
Chris.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|