Discussion:
gprof with mingw-4.4.1 and wxwidgets 2.8.11
(too old to reply)
Georg Kirschner
2010-09-03 21:38:56 UTC
Permalink
Hi NG,

i would like to get some profiling-information from my mingw32 build of my
app which is using wxwidgets. Does anyone has experiences to do this using
the windows toolchain?

If i enable profiling (-pg in the commandline of the compiler and linker)
the build application will crash. Without wxwidgets, profiling will work
fine (tested with some simple sample-code)

wxwidgets was built as a release version without any debug-information and
without profiling-support as i only need those data for my only code.

Where can i find more information about this? Google doesn't show me the
right answers.

Thanks
Georg Kirschner
2010-09-03 22:09:50 UTC
Permalink
Post by Georg Kirschner
If i enable profiling (-pg in the commandline of the compiler and linker)
the build application will crash. Without wxwidgets, profiling will work
fine (tested with some simple sample-code)
Got some news/workaround:
Profiling will work if i add the library "gmon" at the beginning of the
used libraries.

libgmon.a is bundled with mingw and i thought that it will be linked if i
use the -pg switch on the linker command-line, hmm? but now it work's, who
care's.

Loading...