System Workbench for STM32

Measure execution time with clock cycle counter on STM32

Add the contents of the attached System View Description to the svd for the processor you are using. Enable the CYCCNTENA in the CTRL register. Assuming the cycle count register is implemented in the MCU you are using, you are good to go :-)