The time spent by the CPU doing trace and trace-related work is variable. The trace code will send data each time the context is switched, so heavy task switching will create more trace data, thus more time is spent in trace code and sending the data over UART. Consequently the UART speed will also affect the amount of time spent doing trace and trace-related work.
Trace Enabled (TE) | Trace Disabled (TD) | |
---|---|---|
Bubble Sort | 680 ± 4 | 706 ± 2 |
Quick Sort | 1638 ± 10 | 1694 ± 2 |
Bubble Sort | Quick Sort |
---|---|
3.8 ± 0.3% | 3.4 ± 0.5 % |
#define _trace_enabled_
Remember to Clean Solution and Rebuild Solution in Atmel Studio after doing changes in FreeRTOSConfig.h.