I am working on a ARM cortex M4 evaluation board, its a bare metal application without any operating system running on it.
Now I want to measure CPU usage of a given process/algorithm , what would be the best way to do so?
Should i implement an operating system to measure the CPU usage that have the functionality for such demand?