Re: Profile a widget style

Allan Sandfeld Jensen <[email protected]> Sun, 5 Sep 2010 04:34:41 +0200
Newsgroups gmane.comp.kde.devel.optimize
Message-ID <[email protected]>
--===============1119518077==
Content-Type: multipart/alternative;
  boundary="Boundary-01=_CHwgMxJgHA1y+wz"
Content-Transfer-Encoding: 7bit

--Boundary-01=_CHwgMxJgHA1y+wz
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

On Monday 30 August 2010, Mantia Andras wrote:
> Hi,
> 
>  if you missed my blog (http://www.kdedevelopers.org/node/4318), here is
> the summary: I found that Oxygen + nvidia driver + certain nvidia cards
> cause high CPU usage on XOrg. Plastique doesn't cause it.
> The question: anyone has an idea how could I profile what goes wrong?
> 
This is my experience too. At least for kwin most of them problem goes away by 
disable thumbnails, but the widget set is weirdly hard to debug. Sometime the 
widget set is fast enough, but then sometimes it is really slow. I've tried to 
profile it several times, but all I found was a problem with reparsing the XML 
config files, and that have already been solved now. So I am also at a loss at 
how to move on. The only thing that I can think of that makes nvidia special 
is that they not default to not enable shared pixmaps, and Qt could be 
optimized to rely on shared pixmaps(?).

Mvh
Allan

--Boundary-01=_CHwgMxJgHA1y+wz
Content-Type: text/html;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Monospace'; font-size:11pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Monday 30 August 2010, Mantia Andras wrote:</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; Hi,</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt;  if you missed my blog (http://www.kdedevelopers.org/node/4318), here is</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; the summary: I found that Oxygen + nvidia driver + certain nvidia cards</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; cause high CPU usage on XOrg. Plastique doesn't cause it.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; The question: anyone has an idea how could I profile what goes wrong?</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">This is my experience too. At least for kwin most of them problem goes away by disable thumbnails, but the widget set is weirdly hard to debug. Sometime the widget set is fast enough, but then sometimes it is really slow. I've tried to profile it several times, but all I found was a problem with reparsing the XML config files, and that have already been solved now. So I am also at a loss at how to move on. The only thing that I can think of that makes nvidia special is that they not default to not enable shared pixmaps, and Qt could be optimized to rely on shared pixmaps(?).</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Mvh</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Allan</p></body></html>
--Boundary-01=_CHwgMxJgHA1y+wz--

--===============1119518077==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Kde-optimize mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-optimize

--===============1119518077==--