The EventStatistics example project shows how to use start/stop events with the Event Recorder and obtain execution statistics.
The start/stop events allow to measure execution times with different slots (0 - 15) in four different groups (A - D). The call to 'EventStart' starts a timer slot; the call to 'EventStop' stops the related timer. A call to EventStop with slot 15 stops the timers of all slots in the specific group.
This example project is located in the Examples/EventStatistic/
directory. It uses the CMSIS-Toolbox for project build and runs on Arm Virtual Hardware (AVH) processor simulation and does not require real hardware board.
Build and run
Follow the instructions in the example's README.md to build and run the project.
Use the eventlist Utility to analyze the outcomes.
main.c File
The application code in the main.c file does some time consuming calculations that are recorded.