You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdesdk/kstartperf
Michele Calgaro 8a861e2bb8
Removed code formatting modelines.
4 years ago
..
CMakeL10n.txt Add CMakeL10n rules. 5 years ago
CMakeLists.txt Fix hardcoded link to dl library 9 years ago
Makefile.am LIB_QT -> LIB_TQT conversion to align to updated admin module 6 years ago
README Branding cleanup: KDE -> TDE. 12 years ago
kstartperf.cpp Removed code formatting modelines. 4 years ago
libkstartperf.c Removed code formatting modelines. 4 years ago

README

** kstartperf: startup time measurement for KDE apps **

** Usage: 

kstartperf measures startup time for TDE applications. Usage is simple:

    $ kstartperf konsole

will show you the startup time of konsole in milliseconds.


** How does it work?

1. Kstartperf stores the current time with microsecond resolution in an 
   environment variable ($KSTARTPERF).
2. Kstartperf executes the requested application, but with a LD_PRELOAD
   library that overrides the X11 XMapWindow() function.
3. As soon as the app calls XMapWindow (this is the point where we assume
   that the app has "started up"), our function is called instead of the
   original XMapWindow(). This function calculates the time difference 
   between the current time and the time stored in the environment variable 
   and prints this information to standard error. 
4. Our function disables itself and calls the original XMapWindow().

** Notes

The appliation that is being profiled, needs to be linked against tdecore.

Geert Jansen <jansen@kde.org>, 
20 July 2000