User forums > Using Code::Blocks

The call graph

(1/1)

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.

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.

Navigation

[0] Message Index

Go to full version