Hello
I use MinGW 4.8.2 and Qt IDE i tried to use gprof
, I added the following flags
QMAKE_CXXFLAGS_DEBUG += -pg
QMAKE_LFLAGS_DEBUG += -pg
to .pro
file and extarcted the gmon.out
file but i don't know how to convert it to a .txt
file.
the document say
gprof options [executable-file [profile-data-files...]] [> outfile]
but i don't know how and where to do that :-D
that's what i wrote in CMD but failed.
C:\Qt\Tools\mingw482_32\bin\gprof C:\Users\name\Documents\QtCreator\Projects\build-Test-Desktop_Qt_5_3_MinGW_32bit-Debug\gmon.out>profile.txt