Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Profiling Code::Blocks itself?

(1/1)

rickg22:
Guys, i have a question. Has anyone been able to profile CodeBlocks? (including plugins)?

Thanks!

Urxae:
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? ;)

rickg22:
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.

takeshimiya:
First, anyone tried to profile a wxWidgets application successful (with USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0) ?

Ceniza:
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.

Navigation

[0] Message Index

Go to full version