I need help with profiling my C++ Qt application on target, both memory usage and cpu load. I was recomended gprof, but can't seem to get it to work. These are the guides I tried to follow:
- https://sourceware.org/binutils/docs-2.16/gprof/index.html#Top
- http://www.qtcentre.org/wiki/index.php?title=Profiling_with_GNU_gprof
I added these flags to my .pro file
QMAKE_CXXFLAGS+=-pg
QMAKE_LFLAGS+=-pg
But when I execute the program the gmon.out file is nowhere to be found?!
Can anyone give me a step-by-step example of what I am supposed to do?