davedoors wrote on Friday, June 13, 2014:
The timing impact? Well, as with all the features that add code (stack overflow detection, assert points, and the like) there is a code size and execution speed impact. The impact of gathering run time information depends on the implementation of the function that returns the time stamp. If it is simply reading a register then the impact will be one read, and one write, per context switch (actually, probably a little more). If the time stamp needs to be pre-processed then the impact will be higher.
Formatting statistical information into human readable table is another matter. That takes a long time and is not really something you want to be doing outside of your debug code.