I\'m trying to profile a C function (which is called from an interrupt, but I can extract it and profile it elsewhere) on a Cortex M4.
What are the possibilities to
This depends on you ARM implementation.
I used the SysTick->VAL register on a stm32F4 core. This is cycle accurate.
SysTick->VAL
When interpreting the results, take care of:
Limitation: This only works on intervals smaller than a single systick.