Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: JohnCell on June 21, 2023, 05:00:50 pm

Title: Profiling with CodeBlocks
Post by: JohnCell on June 21, 2023, 05:00:50 pm
Hello guys !

I'd like to know if it's possible to use CodeBlocks (or any add-on ) for code profiling under Windows ?
I've not been able to find any tutorial.

Thanks,
John
Title: Re: Profiling with CodeBlocks
Post by: stahta01 on June 21, 2023, 06:27:46 pm
No idea if it still works.

https://wiki.codeblocks.org/index.php/Code_Profiler_plugin (https://wiki.codeblocks.org/index.php/Code_Profiler_plugin)
Title: Re: Profiling with CodeBlocks
Post by: nenin on June 22, 2023, 08:05:55 am
No idea if it still works.
Last time I tried there were solid problems, but I suppose related to fresh mingw versions, not C::B.
Title: Re: Profiling with CodeBlocks
Post by: SashaGT on June 30, 2023, 07:41:20 am
Hello! I hope this isn't too late to help!

I just tested it out on one of my projects. Here are the steps I took to get it working:

Code::Blocks uses gprof for profiling. You won't get nicely drawn call graphs but you could also try and using gprof more directly:

I'm currently using C::B version 20.03-r11983