I need to profile some operations in my program in great detail. Something like cachegrind would be very nice.
But my problem is that it takes a long time to setup the data structure and i can't use it for the whole program. It will take hours to run.
Does anyone know about a profiling tool that comes with a library and where i can just put a "start_profiling()" and "end_profiling()" call around the parts where i want profiling data.
The code is written in C++