Thank you.<br>I do not find the module qt-copy in my KDE installation<br><br>The list of the directories from which i build KDE 4 was:<br><br>kdebase  kdelibs  kdepimlibs konsole<br><br>The qt4 library was already installed in my system.
<br>Do you mean qt4 installation with qt-copy?<br><br>Thanks <br><br>Giacomo<br><br><div><span class="gmail_quote">2007/10/8, Robert Knight <<a href="mailto:robertknight@gmail.com">robertknight@gmail.com</a>>:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> Or do you think they have removed it?<br><br>The patch was recently removed from svn, so I suggest updating your
<br>qt-copy installation as follows:<br><br>1.  svn up qt-copy<br>2.  svn revert -R qt-copy   (to remove any previously applied patches)<br>3.  cd qt-copy<br>     ./apply-patches  (to apply Qt 4 patches by various KDE developers)
<br><br>Rebuild and install qt-copy<br><br>Regards,<br>Robert.<br><br><br>On 08/10/2007, Giacomo <<a href="mailto:delleceste@gmail.com">delleceste@gmail.com</a>> wrote:<br>> Hi Robert!<br>><br>> I will look for that patch!
<br>> I compiled kde4 by svn!<br>><br>> Do you think that the problem still remains in the latest code?<br>> Or do you think they have removed it?<br>><br>> Thanks for your advice!<br>><br>> Have a good day.
<br>> Giacomo<br>><br>><br>><br>> 2007/10/4, Robert Knight <<a href="mailto:robertknight@gmail.com">robertknight@gmail.com</a>>:<br>> ><br>> > > At a first glance, Konsole on KDE4 seems to consume more CPU than
<br>> > > Konsole-KDE3.<br>> ><br>> > That is unexpected behaviour.  There is a buggy patch to Qt which does<br>> > cause a performance problem though which might be related.  If you are<br>> > compiling KDE 4 from SVN then try removing qt-copy patch #0182 (in
<br>> > trunk/qt-copy/patches).  Otherwise you will have to ask the person who<br>> > packaged KDE 4 for you to do likewise.<br>> ><br>> > Regards,<br>> > Robert.<br>> ><br>> ><br>
> > On 04/10/2007, Giacomo <<a href="mailto:delleceste@gmail.com">delleceste@gmail.com</a>> wrote:<br>> > > 2007/10/3, Giacomo <<a href="mailto:delleceste@gmail.com">delleceste@gmail.com</a>>:<br>
> > > Hi, I mean Konsole KDE3.x.<br>> > > Tomorrow i will try the same program inside the Konsole provided by KDE4<br>> > > and will let you know.<br>> > ><br>> > > Thank you and good night.
<br>> > ><br>> > > ---> Here i am!<br>> > ><br>> > > At a first glance, Konsole on KDE4 seems to consume more CPU than<br>> > > Konsole-KDE3.<br>> > > This is a first point, which probably main affects the performance also
<br>> > in<br>> > > my<br>> > > Konsole KPart.<br>> > ><br>> > > If you think it is useful, i can attach the output of `top' for<br>> > > instance for some<br>> > > time, to provide you an example of the two loads.
<br>> > ><br>> > > Thank you and have a good day<br>> > > giacomo<br>> > ><br>> > ><br>> > > ><br>> > > > 2007/10/3, Robert Knight < <a href="mailto:robertknight@gmail.com">
robertknight@gmail.com</a>>:<br>> > > > > > inside a KApplication and a KonsolePart, it runs much slower.<br>> > > > ><br>> > > > > When you are running the application in a console, do you mean
<br>> > > > > Konsole/KDE 4? or a different terminal program?<br>> > > > ><br>> > > > > Regards,<br>> > > > > Robert.<br>> > > > ><br>> > > > > On 03/10/2007, Giacomo <
<a href="mailto:delleceste@gmail.com">delleceste@gmail.com</a>> wrote:<br>> > > > > > Well, my application is named "ipfire".<br>> > > > > ><br>> > > > > > If i launch it as
<br>> > > > > ><br>> > > > > > ./ipfire<br>> > > > > ><br>> > > > > > in a console, it goes fast (low CPU usage).<br>> > > > > ><br>
> > > > > > if i do<br>> > > > > ><br>> > > > > > konsole_part->startProgram("./ipfire");<br>> > > > > ><br>> > > > > > inside a KApplication and a KonsolePart, it runs much slower.
<br>> > > > > ><br>> > > > > > Thank you very much!<br>> > > > > ><br>> > > > > > Giacomo<br>> > > > > ><br>> > > > > >
<br>> > > > > > 2007/10/3, Robert Knight < <a href="mailto:robertknight@gmail.com">robertknight@gmail.com</a>>:<br>> > > > > > > > This is the reason why i was wondering why such a greater
<br>> > usage of<br>> > > > > > > > CPU when i switched to a KonsolePart.<br>> > > > > > ><br>> > > > > > > Let me clarify, are you saying that you have two separate
<br>> > > applications<br>> > > > > > > here (one the console application and one the GUI application<br>> > with<br>> > > an<br>> > > > > > > embedded Konsole part)?  If so, are you saying the console app
<br>> > is<br>> > > > > > > running slower or the GUI app is running slower?<br>> > > > > > ><br>> > > > > > > Regards,<br>> > > > > > > Robert.
<br>> > > > > > ><br>> > > > > > > On 03/10/2007, Giacomo < <a href="mailto:delleceste@gmail.com">delleceste@gmail.com</a>> wrote:<br>> > > > > > > > 2007/10/3, Robert Knight <
<a href="mailto:robertknight@gmail.com">robertknight@gmail.com</a>>:<br>> > > > > > > > > > which does the same amout of printf() calls and<br>> > > > > > > > > > has the same logic, consumes much more CPU (3,4,5% ).
<br>> > > > > > > > ><br>> > > > > > > > > If you are printing a lot of messages to the terminal then<br>> > there<br>> > > > will<br>> > > > > > > > > be a certain overhead caused by the output processing and
<br>> > text<br>> > > > > > > > > rendering.  I would expect the overhead to be very low<br>> > unless<br>> > > you<br>> > > > are<br>> > > > > > > > > printing a very large number of messages.
<br>> > > > > > > ><br>> > > > > > > > Yes there is a lot of messages to print out on the console,<br>> > but<br>> > > this<br>> > > > application
<br>> > > > > > > > has not been changed when embedded into a KonsolePart.<br>> > > > > > > > This is the reason why i was wondering why such a greater<br>> > usage of
<br>> > > > CPU when<br>> > > > > > > > i switched to a KonsolePart.<br>> > > > > > > > I mean, the application i monitor on the konsole KPart is the<br>> > same
<br>> > > i<br>> > > > ran into<br>> > > > > > > > a console Konsole alone, i.e. the same executable started with<br>> > > > > > > ><br>> > > > > > > > konsole_part->startProgram("program_name");
<br>> > > > > > > ><br>> > > > > > > > Thank you anyway,<br>> > > > > > > ><br>> > > > > > > > Giacomo<br>> > > > > > > >
<br>> > > > > > > ><br>> > > > > > > > ><br>> > > > > > > > > What exactly are these messages in any case?<br>> > > > > > > > >
<br>> > > > > > > > > > Is this an issue related to overload caused by embedding<br>> > > Konsole<br>> > > > in a KPart?<br>> > > > > > > > > > Can i improve the performance of my Application?
<br>> > > >  > > > > ><br>> > > > > > > > > Please don't try and guess where your application's<br>> > performance<br>> > > > > > > > > problems lie.  Use a profiling tool.  I recommend callgrind,
<br>> > > which<br>> > > > is<br>> > > > > > > > > part of the valgrind suite.  kcachegrind can then be used to<br>> > > view<br>> > > > and<br>> > > > > > > > > analyse the results.  After installing valgrind, it can be
<br>> > used<br>> > > > like<br>> > > > > > > > > so:<br>> > > > > > > > ><br>> > > > > > > > > valgrind --tool=calllgrind yourapplication 2> 
logfile.out<br>> > > > > > > > ><br>> > > > > > > > > ... use your application as normal for a short while and<br>> > then<br>> > > > close it ...<br>
> > > > > > > > ><br>> > > > > > > > > kcachegrind logfile.out<br>> > > > > > > > ><br>> > > > > > > > > This will give you a much more detailed analysis of where
<br>> > your<br>> > > > > > > > > application is spending its CPU cycles.  If it turns out<br>> > that a<br>> > > > lot of<br>> > > > > > > > > time is being spent in the Konsole part then please post the
<br>> > > > callgrind<br>> > > > > > > > > log to this list.  It might be too large to post as an<br>> > > attachment<br>> > > > > > > > > however.
<br>> > > > > > > > ><br>> > > > > > > > > Regards,<br>> > > > > > > > > Robert.<br>> > > > > > > > ><br>> > > > > > > > > On 03/10/2007, Giacomo < 
<a href="mailto:delleceste@gmail.com">delleceste@gmail.com</a>> wrote:<br>> > > > > > > > > > Good morning to all.<br>> > > > > > > > > ><br>> > > > > > > > > > I used to have a program running on the console (konsole)
<br>> > and<br>> > > > now i am<br>> > > > > > > > > > porting it to a Qt4 (KDE4) application.<br>> > > > > > > > > > The part of the program which used to print out messages
<br>> > on<br>> > > the<br>> > > > console,<br>> > > > > > > > > > has been embedded in a Konsole KPart.<br>> > > > > > > > > ><br>> > > > > > > > > > The issue is that, while when it was a console application
<br>> > it<br>> > > > used to consume<br>> > > > > > > > > > a little percentage of the CPU (< 1% on the peaks of the<br>> > > > printf() calls ),<br>> > > > > > > > > > now the _same_ application, which does the same amout of
<br>> > > > printf() calls and<br>> > > > > > > > > > has the same logic, consumes much more CPU (3,4,5% ).<br>> > > > > > > > > ><br>> > > > > > > > > > Is this an issue related to overload caused by embedding
<br>> > > Konsole<br>> > > > in a KPart?<br>> > > > > > > > > > Can i improve the performance of my Application?<br>> > > > > > > > > > Or is it a price to pay to embed a console application
<br>> > into a<br>> > > > Konsole KPart?<br>> > > > > > > > > > Or is it because i have a alpha version of KDE4?<br>> > > > > > > > > ><br>> > > > > > > > > >
<br>> > > > > > > > > ><br>> > > > > > > > > > Thank you for any advice.<br>> > > > > > > > > ><br>> > > > > > > > > >
<br>> > > > > > > > > ><br>> > > > > > > > > > --<br>> > > > > > > > > > Giacomo S.<br>> > > > > > > > > > 
<a href="http://www.giacomos.it">http://www.giacomos.it</a><br>> > > > > > > > > ><br>> > > > > > > > > > - - - - - - - - - - - - - - - - - - - - - -<br>> > > > > > > > > >
<br>> > > > > > > > > > IPFIREwall ( <a href="http://www.giacomos.it/ipfire">http://www.giacomos.it/ipfire</a>) viene<br>> > presentato<br>> > > > > > > > > > all'Universita` degli Studi di Udine, il 28 ottobre, in
<br>> > > > occasione del<br>> > > > > > > > > > Linux Day 2006:<br>> > > > > > > > > > <a href="http://iglu.cc.uniud.it/linuxday">http://iglu.cc.uniud.it/linuxday
</a><br>> > > > > > > > > ><br>> > > > > > > > > > - - - - - - - - - - - - - - - - - - - - - -<br>> > > > > > > > > ><br>> > > > > > > > > >  . ''  `.
<br>> > > > > > > > > > :   :'    :<br>> > > > > > > > > >  `.  ` '<br>> > > > > > > > > >     `- Debian GNU/Linux -- The power of freedom
<br>> > > > > > > > > >         <a href="http://www.debian.org">http://www.debian.org</a><br>> > > > > > > > > > _______________________________________________<br>
> > > > > > > > > > konsole-devel mailing list<br>> > > > > > > > > > <a href="mailto:konsole-devel@kde.org">konsole-devel@kde.org</a><br>> > > > > > > > > >
<br>> > > > <a href="https://mail.kde.org/mailman/listinfo/konsole-devel">https://mail.kde.org/mailman/listinfo/konsole-devel</a><br>> > > > > > > > > ><br>> > > > > > > > > _______________________________________________
<br>> > > > > > > > > konsole-devel mailing list<br>> > > > > > > > > <a href="mailto:konsole-devel@kde.org">konsole-devel@kde.org</a><br>> > > > > > > > >
<br>> > > > <a href="https://mail.kde.org/mailman/listinfo/konsole-devel">https://mail.kde.org/mailman/listinfo/konsole-devel</a><br>> > > > > > > > ><br>> > > > > > > >
<br>> > > > > > > ><br>> > > > > > > > --<br>> > > > > > > > Giacomo S.<br>> > > > > > > > <a href="http://www.giacomos.it">http://www.giacomos.it
</a><br>> > > > > > > ><br>> > > > > > > > - - - - - - - - - - - - - - - - - - - - - -<br>> > > > > > > ><br>> > > > > > > > IPFIREwall (
<a href="http://www.giacomos.it/ipfire">http://www.giacomos.it/ipfire</a>) viene presentato<br>> > > > > > > > all'Universita` degli Studi di Udine, il 28 ottobre, in<br>> > occasione<br>
> > > > del<br>> > > > > > > > Linux Day 2006:<br>> > > > > > > > <a href="http://iglu.cc.uniud.it/linuxday">http://iglu.cc.uniud.it/linuxday</a><br>> > > > > > > >
<br>> > > > > > > > - - - - - - - - - - - - - - - - - - - - - -<br>> > > > > > > ><br>> > > > > > > >  . ''  `.<br>> > > > > > > > :   :'    :
<br>> > > > > > > >  `.  ` '<br>> > > > > > > >     `- Debian GNU/Linux -- The power of freedom<br>> > > > > > > >         <a href="http://www.debian.org">
http://www.debian.org</a><br>> > > > > > > > _______________________________________________<br>> > > > > > > > konsole-devel mailing list<br>> > > > > > > > 
<a href="mailto:konsole-devel@kde.org">konsole-devel@kde.org</a><br>> > > > > > > > <a href="https://mail.kde.org/mailman/listinfo/konsole-devel">https://mail.kde.org/mailman/listinfo/konsole-devel
</a><br>> > > > > > > ><br>> > > > > > > _______________________________________________<br>> > > > > > > konsole-devel mailing list<br>> > > > > > > 
<a href="mailto:konsole-devel@kde.org">konsole-devel@kde.org</a><br>> > > > > > > <a href="https://mail.kde.org/mailman/listinfo/konsole-devel">https://mail.kde.org/mailman/listinfo/konsole-devel</a><br>
> > > > > > ><br>> > > > > ><br>> > > > > ><br>> > > > > > --<br>> > > > > > Giacomo S.<br>> > > > > > <a href="http://www.giacomos.it">
http://www.giacomos.it</a><br>> > > > > ><br>> > > > > > - - - - - - - - - - - - - - - - - - - - - -<br>> > > > > ><br>> > > > > > IPFIREwall (<a href="http://www.giacomos.it/ipfire">
http://www.giacomos.it/ipfire</a>) viene presentato<br>> > > > > > all'Universita` degli Studi di Udine, il 28 ottobre, in occasione<br>> > del<br>> > > >  > > Linux Day 2006:
<br>> > > > > > <a href="http://iglu.cc.uniud.it/linuxday">http://iglu.cc.uniud.it/linuxday</a><br>> > > > > ><br>> > > > > > - - - - - - - - - - - - - - - - - - - - - -
<br>> > > > > ><br>> > > > > >  . ''  `.<br>> > > > > > :   :'    :<br>> > > > > >  `.  ` '<br>> > > > > >     `- Debian GNU/Linux -- The power of freedom
<br>> > > > > >         <a href="http://www.debian.org">http://www.debian.org</a><br>> > > > > > _______________________________________________<br>> > > > > > konsole-devel mailing list
<br>> > > > > > <a href="mailto:konsole-devel@kde.org">konsole-devel@kde.org</a><br>> > > > > > <a href="https://mail.kde.org/mailman/listinfo/konsole-devel">https://mail.kde.org/mailman/listinfo/konsole-devel
</a><br>> > > > > ><br>> > > > > _______________________________________________<br>> > > > > konsole-devel mailing list<br>> > > > > <a href="mailto:konsole-devel@kde.org">
konsole-devel@kde.org</a><br>> > > > > <a href="https://mail.kde.org/mailman/listinfo/konsole-devel">https://mail.kde.org/mailman/listinfo/konsole-devel</a><br>> > > > ><br>> > > >
<br>> > > ><br>> > > > --<br>> > > ><br>> > > > Giacomo S.<br>> > > > <a href="http://www.giacomos.it">http://www.giacomos.it</a><br>> > > ><br>> > > > - - - - - - - - - - - - - - - - - - - - - -
<br>> > > ><br>> > > > IPFIREwall ( <a href="http://www.giacomos.it/ipfire">http://www.giacomos.it/ipfire</a>) viene presentato<br>> > > > all'Universita` degli Studi di Udine, il 28 ottobre, in occasione del
<br>> > > > Linux Day 2006:<br>> > > >  <a href="http://iglu.cc.uniud.it/linuxday">http://iglu.cc.uniud.it/linuxday</a><br>> > > ><br>> > > > - - - - - - - - - - - - - - - - - - - - - -
<br>> > > ><br>> > > > . ''  `.<br>> > > > :   :'    :<br>> > > > `.  ` '<br>> > > >     `- Debian GNU/Linux -- The power of freedom<br>> > > >          
<a href="http://www.debian.org">http://www.debian.org</a><br>> > > ><br>> > ><br>> > ><br>> > > --<br>> > > Giacomo S.<br>> > > <a href="http://www.giacomos.it">http://www.giacomos.it
</a><br>> > ><br>> > > - - - - - - - - - - - - - - - - - - - - - -<br>> > ><br>> > > IPFIREwall (<a href="http://www.giacomos.it/ipfire">http://www.giacomos.it/ipfire</a>) viene presentato
<br>> > > all'Universita` degli Studi di Udine, il 28 ottobre, in occasione del<br>> > > Linux Day 2006:<br>> > > <a href="http://iglu.cc.uniud.it/linuxday">http://iglu.cc.uniud.it/linuxday</a>
<br>> > ><br>> > > - - - - - - - - - - - - - - - - - - - - - -<br>> > ><br>> > >  . ''  `.<br>> > > :   :'    :<br>> > >  `.  ` '<br>> > >     `- Debian GNU/Linux -- The power of freedom
<br>> > >         <a href="http://www.debian.org">http://www.debian.org</a><br>> > > _______________________________________________<br>> > > konsole-devel mailing list<br>> > > <a href="mailto:konsole-devel@kde.org">
konsole-devel@kde.org</a><br>> > > <a href="https://mail.kde.org/mailman/listinfo/konsole-devel">https://mail.kde.org/mailman/listinfo/konsole-devel</a><br>> > ><br>> > _______________________________________________
<br>> > konsole-devel mailing list<br>> > <a href="mailto:konsole-devel@kde.org">konsole-devel@kde.org</a><br>> > <a href="https://mail.kde.org/mailman/listinfo/konsole-devel">https://mail.kde.org/mailman/listinfo/konsole-devel
</a><br>> ><br>><br>><br>><br>> --<br>> Giacomo S.<br>> <a href="http://www.giacomos.it">http://www.giacomos.it</a><br>><br>> - - - - - - - - - - - - - - - - - - - - - -<br>><br>> IPFIREwall (
<a href="http://www.giacomos.it/ipfire">http://www.giacomos.it/ipfire</a>) viene presentato<br>> all'Universita` degli Studi di Udine, il 28 ottobre, in occasione del<br>> Linux Day 2006:<br>> <a href="http://iglu.cc.uniud.it/linuxday">
http://iglu.cc.uniud.it/linuxday</a><br>><br>> - - - - - - - - - - - - - - - - - - - - - -<br>><br>> . ''  `.<br>> :   :'    :<br>> `.  ` '<br>>     `- Debian GNU/Linux -- The power of freedom
<br>>         <a href="http://www.debian.org">http://www.debian.org</a><br>><br>_______________________________________________<br>konsole-devel mailing list<br><a href="mailto:konsole-devel@kde.org">konsole-devel@kde.org
</a><br><a href="https://mail.kde.org/mailman/listinfo/konsole-devel">https://mail.kde.org/mailman/listinfo/konsole-devel</a><br></blockquote></div><br><br clear="all"><br>-- <br>Giacomo S.<br><a href="http://www.giacomos.it">
http://www.giacomos.it</a><br> <br>- - - - - - - - - - - - - - - - - - - - - -<br><br>IPFIREwall (<a href="http://www.giacomos.it/ipfire">http://www.giacomos.it/ipfire</a>) viene presentato <br>all'Universita` degli Studi di Udine, il 28 ottobre, in occasione del
<br>Linux Day 2006:<br><a href="http://iglu.cc.uniud.it/linuxday">http://iglu.cc.uniud.it/linuxday</a><br><br>- - - - - - - - - - - - - - - - - - - - - -<br><br> . ''  `.<br>:   :'    :<br> `.  ` '<br>    `- Debian GNU/Linux -- The power of freedom
<br>        <a href="http://www.debian.org">http://www.debian.org</a>