Small profiling helper

David Faure david at mandrakesoft.com
Sat May 25 17:43:04 BST 2002


The attached header helps doing manual profiling using QTime.

The usual way of using a QTime and elapsed() works at the high level
(around one call) but not in a nested method called many times
from a higher-level loop.

It's quite simple and stupid but it works nicely - using the results
I could improve search-n-replace in KWord (in  the "without prompt" case) 
by a factor 32 ;)

Should this go in e.g. kdesdk, or is it really too simple and stupid
compared to real tools, e.g. gprof etc.? ;)

-- 
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/
KDE, Making The Future of Computing Available Today
-------------- next part --------------
A non-text attachment was scrubbed...
Name: prof.h
Type: text/x-chdr
Size: 1887 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20020525/2a7ae416/attachment.h>


More information about the kde-core-devel mailing list