Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: serge17 on April 22, 2012, 12:42:09 am

Title: [SOLVED ]how to insert gprof in codeblocks
Post by: serge17 on April 22, 2012, 12:42:09 am
Hello

I use Windows 7 and I recently installed codebloks-10.05mingw. I Compiled a small program with the-pg option and I got the file gmon.out . My problem is to read it with gprof. If gprof is not in the package,  how can I insert it in CodeBlocks  ?

Thanks by advance
Title: Re: how to insert gprof in codeblocks
Post by: Alpha on April 22, 2012, 07:17:20 pm
Based on your setup, I would guess that gprof already exists in a path similar to C:\Program Files\CodeBlocks\MinGW\bin.  You could test by running Plugins->Code profiler while your project is open.
Title: Re: how to insert gprof in codeblocks
Post by: serge17 on April 22, 2012, 11:17:17 pm
Hello Alpha

I found gprof.exe in C\...  : so it is in the package. But I don’t know what to do with.
I don’t understand what you mean by  "running Plugins->Code profiler"
In the menu, I see  Plugins  but when opened I see
    Source code formatter
   Windows XP Look’n Fell
   -------------------------------
   Manage plugins


I tried Manage plugins -> Install new but it looks for file *.cbplugin

Regards   
Title: Re: how to insert gprof in codeblocks
Post by: oBFusCATed on April 22, 2012, 11:33:43 pm
You have to install the contrib plugins, probably, their are not installed by default.
Title: Re: how to insert gprof in codeblocks
Post by: serge17 on April 23, 2012, 02:39:41 pm
Hello

Great ! Now, I understand  "running Plugins->Code profiler".
I found  Code profiler  in the  contrib plugins  but this leads to a new question :
Where to download it ? Do you know a trusted address ?  I looked for for a while !

Regards
Title: Re: how to insert gprof in codeblocks
Post by: Jenna on April 23, 2012, 02:44:16 pm
To install the plugin, just rerun C::B's installer and make sure it is selected to be installed.
Title: Re: how to insert gprof in codeblocks
Post by: serge17 on April 23, 2012, 06:15:54 pm
Hello

I did it : it’s works !   (I think, it’s the words you wish to heard )

Thanks a lot for the time you give to the community.

Regards.

PS : It’s not very long but it’s an odd way to do.
By chance,  I haven’t to rebuild my home every time I hang a painting on my wall !
Title: Re: how to insert gprof in codeblocks
Post by: stahta01 on April 23, 2012, 07:29:12 pm
Hello

I did it : it’s works !   (I think, it’s the words you whish to heard )

Thanks a lot for the time you give to the community.

Regards.

PS : It’s not very long but it’s an odd way to do.
By chance,  I haven’t to rebuild my home every time I hang a painting on my wall !


When you construct your home without a den you might need to add it on later.

Tim S.