User forums > Using Code::Blocks

Code Profiler: Problem with gprof under WINDOWS

<< < (4/5) > >>

zak:


Thanks very much to all!!!

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

Best Regards.

zak:


IT WORKS!!!!


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

Steven 'lazalong':
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:
 
* CB 8.1

* Build 5192

* TDM-GCC 4.3.2 (http://forums.codeblocks.org/index.php/topic,8512.0.html)

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.

rhf:
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.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version