I wanted to know how much time is being consumed by each function of my code. I have made multiple files (8-9) for different functions. My main function contains only initialization rest everything is interrupt based. But Some how I am not getting the desired speed which I wanted. So I tried debugging it along with the time line response. Here I am only getting the functions being called in the main function, that too not all the functions. How do I get time response of all the functions being called ? Below is the timeline diagram of my program. I want similar timeline for all the functions.