News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Profiler not working in windows

Started by Audette, June 19, 2008, 09:48:41 AM

Previous topic - Next topic

Audette

Hello,

I am having a problem with running the profiler on a win xp machine. I have build my code using -g and -pg. But still when I go plugins -> code  profiler, the launching gprof pop up comes up and crashes. Does anyone have any ideas why this is happening.

I have tried the same code within Vista and after following the suggestions in the following thread the profiler worked. But no such luck with XP.
http://forums.next.codeblocks.org/index.php/topic,1272.0.html

Before you suggest, I have reinstalled MinGW and all the associated componenets. Even uninstalled and reinstalled the Code::Blocks program without any joy :(

Please help.

MortenMacFly

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Audette

The current release binutils 2.17.50

The MinGW was installed from the automated installer - Ver 5.1.4

on top of it, I have installed MSys 1.0.10 and GDB 6.8-3 (release candidate)

MortenMacFly

Quote from: Audette on June 19, 2008, 10:19:55 AM
The current release binutils 2.17.50
That's OK (later version(s) have bugs with gprof).

Quote from: Audette on June 19, 2008, 10:19:55 AM
on top of it, I have installed MSys 1.0.10
Huh! This is most likely no good. You cannot and should not install MSYS on top of a compiler installation. Usually MSYS is a stand-alone "tool" which refers to the folder where GCC is installed via fstab. So this *might* be a reason.

Right... as a next step: Please try running gprof from the command line and not from within C::B. Does is crash then, too?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Audette

#4
QuoteRight... as a next step: Please try running gprof from the command line and not from within C::B. Does is crash then, too?

Nope - this seems to be working fine when called from the command line.

but there must be some way to get it working within Code::Blocks as well - right???