Mega Search
23.2 Million


Sign Up

Make a donation  
gprof with mingw-4.4.1 and wxwidgets 2.8.11  
News Group: comp.soft-sys.wxwindows

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

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 3-Sep-2010, at 11:38 PM EST
From: Georg Kirschner
 
Re: gprof with mingw-4.4.1 and wxwidgets 2.8.11  
News Group: comp.soft-sys.wxwindows
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.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 4-Sep-2010, at 12:09 AM EST
From: Georg Kirschner