Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gprof with mingw-4.4.1 and wxwidgets 2.8.11

69 views
Skip to first unread message

Georg Kirschner

unread,
Sep 3, 2010, 5:38:56 PM9/3/10
to
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

unread,
Sep 3, 2010, 6:09:50 PM9/3/10
to
Am Fri, 3 Sep 2010 23:38:56 +0200 schrieb 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.

0 new messages