Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: mingkoonkat on August 28, 2014, 04:49:17 pm

Title: code blocks dragging down the cpu when building makefile project
Post by: mingkoonkat on August 28, 2014, 04:49:17 pm

Since our project has its own build system then I use the makefile project feature of code blocks on Ubuntu.

I observer (using top) that code blocks is using 100% of the cpu during builds and that the compiler runs only intermittently and is allowed somewhere between 4 and 30 % of the CPU. This really slows down the build, and so lacking any clear idea on what to do to fix the situation I just build the code outside the IDE, when I am using code blocks.
Title: Re: code blocks dragging down the cpu when building makefile project
Post by: stahta01 on August 28, 2014, 06:06:50 pm
I suggest disabling all CB Plugins except for the Compiler Plugin and see if the problem has gone away.

If it still has the problem, I also suggest using the tool or toolplus plugin to run the makefile instead of the CB Compiler Plugin.

Tim S.
Title: Re: code blocks dragging down the cpu when building makefile project
Post by: mingkoonkat on August 28, 2014, 06:55:46 pm

Thanks for that suggestion.

I just finished disabling all plugins with the one exception being the compiler plugin, and after restarting C::B, I continue to see the same behaviour.

It looks like I don’t have either of the tool or toolplus plugins, so perhaps I will need to find a source and install them.
Title: Re: code blocks dragging down the cpu when building makefile project
Post by: oBFusCATed on August 28, 2014, 11:24:19 pm
Do you have many warnings produced by your build?
If not then the problem is caused by wxExecute/wxProcess calls :(