News:

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

Main Menu

[SOLVED ]how to insert gprof in codeblocks

Started by serge17, April 22, 2012, 12:42:09 AM

Previous topic - Next topic

serge17

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

Alpha

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.

serge17

#2
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   

oBFusCATed

You have to install the contrib plugins, probably, their are not installed by default.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

serge17

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

Jenna

To install the plugin, just rerun C::B's installer and make sure it is selected to be installed.

serge17

#6
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 !

stahta01

Quote from: serge17 on April 23, 2012, 06:15:54 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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]