User forums > Using Code::Blocks
High CPU usage
thomas:
Or better, you could simply copy the first line from OnIdle into OnTimer, and delete OnIdle alltogether.
That should work the same (I am pretty sure it does because I poll stdout from inside OnTimer in the svn plugin, too - it works fine).
If my theory is correct, you have solved the problem with this.
If my theory is not correct, you don't lose anything - the only difference is that the system has to push one less message through its queue and you save a few calls.
rickg22:
Why don't you change the code and try it out?
grv575:
Maybe profile the debugger polling as well? It takes quite a long time to step through a program as is (time between pressing the step/step over button and the actual update is very unresponsive...). I'm thinking the way the gdb output is polled and read could be optimized to make this more instantaneous.
rickg22:
HMmmmmmmmmmmmmmmmmmmmmmmmmm
Did you try modifying the code and moving the mouse around?
grv575:
No I've just looked at the code so far. Haven't tried changing delays or logging events or anything yet.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version