News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Code Profiler: Problem with gprof under WINDOWS

Started by zak, June 09, 2008, 10:14:59 AM

Previous topic - Next topic

zak



Thanks very much to all!!!

I am going to fix it..  ehmm... to try..

Best Regards.

zak


Steven 'lazalong'

#17
Seems I have the same problem but this 2.17.50 workaround doesn't work for me.

gprof works in command line but not via CB

I installed:

I tried the gprof 2.18.50 & 2.17.50 but I still get the windows "Flat Profile" and "Call Graph" empty. (The Misc windows is ok).

Reverting to gcc 4.3.5 coming with CB 8.1 didn't help.

And, finally, launching the profiler via CB on an old gprof gmon.out file (which worked fine before) resulted in the windows being empty (even if the Misc is ok).


However, if in a command windows I type "gprof test.exe gmon.out > profile.txt"  the flat profile is generated correctly.

So IMO it is not gprof which is at fault but the plugin.
-------------------------------
OGE - [url="//www.opengameengine.org"]www.opengameengine.org[/url]

rhf

#18
I am not sure this is the issue, but there is a problem with the latest gprof binaries. See, for example,

Subject: gprof time accumulation problem
Newsgroups: gmane.comp.gnu.mingw.user
Date: 2008-08-23 20:53:05 GMT

http://article.gmane.org/gmane.comp.gnu.mingw.user/27398

and Danny Smith's response

Subject: Re: gprof time accumulation problem
Newsgroups: gmane.comp.gnu.mingw.user
Date: 2008-08-23 22:58:53 GMT

It sure would be nice if a new release was available.

Steven 'lazalong'

I know this

As I tried to explain I tried a "very recent" gprof and the "before april 2007"
and they work in command line. But the windows don't show the result!

Perhaps I have a separate issue from you - it would be strange though.
-------------------------------
OGE - [url="//www.opengameengine.org"]www.opengameengine.org[/url]

josholig

I don't have very much experience when it comes to installing this kind of thing and I can't for life of me figure out how to install the 2.17.50 over the 2.18.50 release.  Can someone please provide a step to step guide for how to do this I use Windows Vista but even a Windows XP guide would probably be sufficient

rhf

Quote from: josholig on October 11, 2008, 08:00:21 PM
Can someone please provide a step to step guide for how to do this I use Windows Vista but even a Windows XP guide would probably be sufficient
josholig, This turns out to not really be a CodeBlocks issue, but I can explain what I did to get gprof to work for me - no guarantees.
(1) Since you might want it back, rename your current version of gprof.exe , typically in C:\MinGW\bin, to say gprof_preview.exe.
(2) Download Current Release of binutils. http://downloads.sourceforge.net/mingw/binutils-2.17.50-20060824-1.tar.gz?modtime=1156941940&big_mirror=1
(3) Make a local temporary directory, extract the files and copy  bin\gprof.exe to C:\MinGW\bin directory.

josholig

#22
I tried it and it still does not work in code::blocks the only difference was that my C:\MinGw\ is actually in C:\Program Files\CodeBlocks\MinGw\ if that is a problem how can I change that and not mess up CodeBlocks if not is there another possible workaround?

::EDIT:: It did work I just copied the wrong gprof.exe over it works now now though

RoBaTte

Oh my god! I love you.
2 days reading, trying, getting crazy ending now in a happy end. It works. Thanks a lot!  :D :D


Quote from: irf610 on June 12, 2008, 07:18:42 PM
Hi,

Just ran into this problem. gprof 2.18.50 seem to have a problem. Just install gprof 2.17.50 and everything work fine.

You can find it in the Mingw GNU Bintuils release 2.17.50 at the following address :
http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=11290