The Function Profiler doesn't give all information

Technical Note 25884



1/14/2011 2:42 PM


In some cases, the Function Profiler seems to lack a lot of information. Most columns are empty.


When the Function Profiler Window build its' presentation data from the SWO channel, that data are from samples. That is, it is not continuous information that is collected.

Comments on SWO

It must be noted is that SWO is a sampling process (that is, continuous information is not outputted). So each SWO data package is just the information that the PC was at a specific address at a moment. The implication of this situation must be taken into account when setting expectations on what to get presented in the Function Profiler Window.
(The other technology for collecting data on executed instructions is called ETM, which is a full trace that will supply data for each executed instruction.)

Comments on the Function Profiler Window

This can be expected when basing profiling on SWO (and what is different from ETM based profiling).

Column With SWO (sampled) data With ETM (continious) data
Calls This column is empty as the debugger samples values of PC. With samples the debugger do not 'know' if a function has been called at non-sampled time. With ETM trace the situation is different as the debugger get information of every call to the function.
Flat time The number of samples that was collected when the sample was collected when PC was within this function. The time in cycles spent within this function.
Flat time (%) The number of samples located in this function expressed as a percentage of the total number of samples. Flat time in cycles expressed as a percentage of the total time.
Acc time Not used The time in cycles spent in this function and everything called by this function.
Acc time (%) Not used Accumulated time in cycles expressed as a percentage of the total time.

Picture with comments

Commented picture from the Function Profiler Window (when basing on SWO data):

All Product names are trademarks or registered trademarks of their respective owners.

Related Tech Notes

© IAR Systems 1995-2016 - All rights reserved.