Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: rickg22 on November 24, 2005, 01:45:12 am

Title: Profiling Code::Blocks itself?
Post by: rickg22 on November 24, 2005, 01:45:12 am
Guys, i have a question. Has anyone been able to profile CodeBlocks? (including plugins)?

Thanks!
Title: Re: Profiling Code::Blocks itself?
Post by: Urxae on November 24, 2005, 02:08:04 am
Since you're asking, can we assume just turning on profiling in build options, rebuilding and running doesn't work for some reason? (doesn't include dlls maybe?)
Or are you just lazy and hoping someone else will do it for you? ;)
Title: Re: Profiling Code::Blocks itself?
Post by: rickg22 on November 24, 2005, 04:06:44 am
Yesterday (or was it today? can't remember) Thomas and I spent a lot of time researching  about profiling (I was googling at job, he was compiling at home)... we (he) could never get gprof to run on codeblocks.
Title: Re: Profiling Code::Blocks itself?
Post by: takeshimiya on November 24, 2005, 04:36:25 am
First, anyone tried to profile a wxWidgets application successful (with USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0) ?
Title: Re: Profiling Code::Blocks itself?
Post by: Ceniza on November 30, 2005, 01:03:52 am
I just got to profile a "piece" of Code::Blocks.

I was looking for a way to be able to profile it all, but couldn't find anything (in other words, I was looking for a way to make the output file be named something different than gmon.out or get it created somewhere else and got nothing).

The current trick is to enable profiling only for one target.

I just tried enabling profiling for the SDK, rebuilding Code::Blocks, running it and got the gmon.out file. Ran gprof codeblocks.dll > results.txt and it worked :)

So... as far as the profiling focus in just one target everything will be ok.