CPU consumption due to UIBlockTester

Milian Wolff mail at milianw.de
Wed Oct 27 18:36:59 UTC 2010

On Wednesday 27 October 2010 20:03:42 Christoph Bartoschek wrote:
> Hi,
> on my notebook kdevelop uses constantly 4-6% of cpu. The result is that the
> CPU never sleeps and my battery drains very quickly.
> The cause is that kdevelop wakes up every 30 milliseconds due to the
> UIBlockTester.
> My questions are:
> 1. Why is DEBUG_UI_LOCKUP defined in the released version. I would expect
> that the official release of kdevelop has such debugging stuff disabled.
> 2. Why is the interval only 30 miliseconds?
> 3. Why is the LOCKUP_INTERVAL divided by 10 in the UIBlockTester class.
> Shouldn't LOCKUP_INTERVAL directly be the the number of miliseconds used to
> sleep?

probably something david should answer to.

> Please undefine DEBUG_UI_LOCKUP for the released version and release a
> fixed kdevelop 4.1.1 as soon as possible.

Done in master, backported to 4.1 branch.

I just made this an optional debug switch at compile time (as it should have 
Milian Wolff
mail at milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20101027/0daad817/attachment.sig>

More information about the KDevelop-devel mailing list