Author Topic: Code Profiler: Problem with gprof under WINDOWS  (Read 43792 times)

Offline zak

  • Multiple posting newcomer
  • *
  • Posts: 26
Re: Code Profiler: Problem with gprof under WINDOWS
« Reply #15 on: June 13, 2008, 10:05:16 am »


Thanks very much to all!!!

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

Best Regards.

Offline zak

  • Multiple posting newcomer
  • *
  • Posts: 26
Re: Code Profiler: Problem with gprof under WINDOWS
« Reply #16 on: June 13, 2008, 10:41:25 am »


IT WORKS!!!!


THANKS TO ALL!!!!!!!!!!!

Offline Steven 'lazalong'

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: Code Profiler: Problem with gprof under WINDOWS
« Reply #17 on: September 09, 2008, 07:20:09 am »
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.
« Last Edit: September 09, 2008, 11:27:32 am by Steven 'lazalong' »
-------------------------------
OGE - www.opengameengine.org

Offline rhf

  • Multiple posting newcomer
  • *
  • Posts: 123
Re: Code Profiler: Problem with gprof under WINDOWS
« Reply #18 on: September 09, 2008, 06:38:21 pm »
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.
« Last Edit: September 09, 2008, 06:41:50 pm by rhf »

Offline Steven 'lazalong'

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: Code Profiler: Problem with gprof under WINDOWS
« Reply #19 on: September 10, 2008, 12:51:37 am »
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 - www.opengameengine.org

josholig

  • Guest
Re: Code Profiler: Problem with gprof under WINDOWS
« Reply #20 on: October 11, 2008, 08:00:21 pm »
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

Offline rhf

  • Multiple posting newcomer
  • *
  • Posts: 123
Re: Code Profiler: Problem with gprof under WINDOWS
« Reply #21 on: October 12, 2008, 06:55:29 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

  • Guest
Re: Code Profiler: Problem with gprof under WINDOWS
« Reply #22 on: October 13, 2008, 06:18:51 am »
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
« Last Edit: October 14, 2008, 07:00:27 am by josholig »

RoBaTte

  • Guest
Re: Code Profiler: Problem with gprof under WINDOWS
« Reply #23 on: April 25, 2009, 12:16:25 am »
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


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