User manual
UM0036 STice features
Doc ID 7705 Rev 11 269/385
3. If you have selected Code coverage and profiling in the Time Profiling section,
select the Time recording mode:
– Instruction: Measures the time from the beginning of an instruction to the
beginning of the next instruction, regardless of the time spent in subroutines. In
the profiling results, all instructions are presented at the same level.
– Subroutine and interrupt (default): Measures the time from the beginning of an
instruction to the beginning of the next instruction, including the time spent in
subroutine calls and in interrupt handler routines when an external interrupt stops
the subroutine flow.
– Subroutine: Measures the time from the beginning of an instruction to the
beginning of the next instruction, including the time spent in subroutine calls. If an
interrupt occurs during subroutine execution, the duration of the interrupt is not
added to the duration of the call instruction.
In the two subroutine modes, the call instructions are handled in a special way. The
number of occurrences of a call instruction only takes into account complete calls
where the subroutine is executed from start to end. In the same way, the time spent at a
subroutine call only takes into account complete calls. For example if a function "f" is
called only once and the program is stopped within "f", the number of occurrences of
"call f" will be 0. Its time will also be 0.