In Qt you can integrate valgrind to analyze your code. I'm using the Valgrind Function Profiler in the Analyze mode and hit the Start button. The problem is, that I have a huge startup sequence which I'm not interested in.
I found defines in the valgrind/callgrind.h that should help me:
- CALLGRIND_START_INSTRUMENTATION
- CALLGRIND_STOP_INSTRUMENTATION
- CALLGRIND_DUMP_STATS
According to this article I have to execute valgrind with the following options:
valgrind --tool=callgrind --instr-atstart=no ./application
But how do I do that within Qt? I still want to use the nice GUI and navigation. Thanks!