I have a program in which significant amount of time is spent loading and saving data. Now I want to know how much time each function is taking in terms of percentage of the total running time. However, I want to exclude the time taken by loading and saving functions from the total time considered by the profiler. Is there any way to do so using gprof or any other popular profiler?
Share
Similarly you can use
Other options to look at:
To get instructionlevel stats:
Alternatively you can ‘remote control’ it on the fly:
callgrind_controlor annotate your source code (IIRC also with branch predictions stats):callgrind_annotate.The excellent tool
kcachegrindis a marvellous visualization/navigation tool. I can hardly recommend it enough: