Author Topic: code blocks dragging down the cpu when building makefile project  (Read 4049 times)

Offline mingkoonkat

  • Multiple posting newcomer
  • *
  • Posts: 16

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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: code blocks dragging down the cpu when building makefile project
« Reply #1 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.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline mingkoonkat

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: code blocks dragging down the cpu when building makefile project
« Reply #2 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: code blocks dragging down the cpu when building makefile project
« Reply #3 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 :(
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]