Resedit (Was: Proposal for KControl)j

David Faure david at mandrakesoft.com
Sat Jul 6 20:18:51 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 05 July 2002 23:01, aleXXX wrote:
> On Friday 05 July 2002 16:54, Maks Orlovich wrote:
> > > If Waldo is right and Qt 3.1 will have icon loading on demand (i.e. read
> > > the icon from disk when it is rendered the first time ?) this will
> > > speedup app startup noticable. A lot (like more than 50 percent or so) of
> > > the time when building the xml gui is spent loading all the icons. For
> > > konqy building the xml gui takes quite some time, at least more than 1
> > > sec, maybe even 2 sec, saving 1 sec here would be a good thing :-)
> > > (times measured on K6/200)
> >
> > Wondering here: What sorts of tools did you use to do the profiling? I
> > tried various profilers out of curiousity and couldn't really get
> > meaningful results...
> >
> Very simple:
> 
> QTime t;
> t.start();
> ...
> //code to be measured
> ...
> kdDebug()<<t.elapsed()<<" millesecs elapsed"<<endl;
> 
> I think David wrote some patch/script/something to automate this.

Yes, kdesdk/kprofilemethod/
It's just like the above, but summing up all the calls (in case this
code is in a sub-method, to compare with the overall time taken
by a high-level-method).

- -- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2-beta2 is out! http://dot.kde.org/1025176121/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9J0Kb72KcVAmwbhARAlCmAJ9ytCsyV8Xh93I10zir+Hi1K+SaNgCfXQn5
u3yNQ8OPVPHjC4DlTUT3eY8=
=S3qQ
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list