ECROS includes an optional task profiler which measures the maximum execution time and percentage CPU utilization of tasks. Because recording this information itself takes CPU time, the profiler is not always included in an ECROS build. However, by request it can be included.
To make individual task execution time measurements, the profiler uses the same built-in Z8 Encore! timer as the timers sub-system. This is selected from timers 0, 1 or 2 when ECROS is built. The resolution of this timer is smaller than 1 microsecond, therefore the maximum execution times reported can be assumed to be accurate to one digit.
A limitation of the task profiler is that it may not operate correctly if tasks run for more than 25 ms.