[Qt-interest] Application consuming 60% of CPU usage ..
Colin S. Miller
no-spam-thank-you at csmiller.demon.co.uk
Tue Oct 20 16:00:15 CEST 2009
Sean Harmer wrote:
> Hi,
>
> On Tuesday 20 Oct 2009 13:39:03 Chandru... wrote:
>> the Xorg is consuming 60% of the CPU usage ... my application its taking
>> only 6%....
>
> However, I am guessing that the large Xorg CPU usage is caused by many xlib
> painting calls resulting from your graphics items. So profiling your app is
> still the way to go. Most likely culprit is some slow code paths in your
> custom graphics item paint() functions. You may also want to investigate
> QGraphicsItem::setCacheMode().
Chandru, Sean
the xtrace package will decode all the X requests that an application makes.
It's available from
http://packages.debian.org/search?keywords=xtrace
Unless you are running Debian, you probably want the source code from Lenny
and built it yourself.
HTH,
Colin S. Miller
More information about the Qt-interest-old
mailing list