Author Topic: Profiling Code::Blocks itself?  (Read 5330 times)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Profiling Code::Blocks itself?
« on: November 24, 2005, 01:45:12 am »
Guys, i have a question. Has anyone been able to profile CodeBlocks? (including plugins)?

Thanks!

Offline Urxae

  • Regular
  • ***
  • Posts: 376
Re: Profiling Code::Blocks itself?
« Reply #1 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? ;)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Profiling Code::Blocks itself?
« Reply #2 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.

takeshimiya

  • Guest
Re: Profiling Code::Blocks itself?
« Reply #3 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) ?

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: Profiling Code::Blocks itself?
« Reply #4 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.