News:

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

Main Menu

The call graph

Started by OzzyR21, November 21, 2017, 05:59:31 PM

Previous topic - Next topic

OzzyR21

How (and where) do I get the call graph in code::blocks (if possible).
I mean the graph that shows how much time was spent in each function and its children

Thank you.

stahta01

If I recall correctly the profiler plugin; I have not used it before.

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]

BlueHazzard

What operating system are you using?

OzzyR21

[SOLVED]

Thank you both guyzz.I am using CentOS 7.
It is profiler plugin indeed but I had to tick those:
Settings->Compiler->Compiler Flags ->Debugging->Produce Debugging symbols [-g]
Settings->Compiler->Compiler Flags ->Profiling->Profile code when executed [-pg]

oBFusCATed

OzzyR21: if you're going to use gprof it is best to read about its limitations. Generally these days perf is considered better profiler and the one to use when you need to measure performance. I'm using it in combination with flame graphs.
(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!]