While running a multi-threaded system on coretx-M0+ using RTX, I want to measure percentage of time spent in each task on the CPU and time spent in idle task. Can anyone suggest a way to do that?