J-Link / J-Trace (UM08001) © 2004-2017 SEGGER Microcontroller GmbH & Co. KG
375
14.1.4 What is code profiling?
Code profiling is a form of measuring the execution time and the execution count of
functions, blocks or instructions. It can be used as a metric for the complexity of a
system and can highlight where computing time is spent. This provides a great
insight into the running system and is essential when identifying code that is exe-
cuted frequently, potentially placing a high load onto a system. The code profiling
information can help to easier optimize a system, as it accurately shows which blocks
take the most time and are worth optimizing.
Note: This feature also requires a J-Trace that supports streaming trace.