CMSIS-View  
Record program events, display status information, and analyze execution faults
 
Loading...
Searching...
No Matches
Event Statistics

Overview

The Event Execution Statistics functions allow you to collect and statistical data about the code execution. Any debug adapter can be used to record execution timing and number of calls for annotated code sections:

Event Statistics for user code

Energy profiling is of annotated code sections is possible using ULINKplus. When combined with power measurement, the Event Statistics window displays the energy consumption of the code section with min/man/average values:

User code energy profiling

For more information, refer to the EventStatistic example.

Benefits of Event Statistics:

  • Collect statistical data about the code execution (time and energy).
  • Log files enable comparisons between different build runs in continuous integration (CI) environments.
  • Improve overall code quality and energy profile (especially relevant for battery driven applications).

Display current consumption

Using a ULINKplus debug adapter, you can also record and analyze the energy that has been consumed in each execution slot. Using the above example on a hardware target with a ULINKplus, you get the following display in the Event Statistics window of µVision (the Event Recorder window does not change):

Event Statistics displaying the energy consumption