diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bd9e6617827818fd043452c08c606f07b78014a0 (patch) | |
tree | 425bb4c3168f9c02f10150f235d2cb998dcc6108 /kstartperf/README | |
download | tdesdk-bd9e6617827818fd043452c08c606f07b78014a0.tar.gz tdesdk-bd9e6617827818fd043452c08c606f07b78014a0.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kstartperf/README')
-rw-r--r-- | kstartperf/README | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/kstartperf/README b/kstartperf/README new file mode 100644 index 00000000..ff986444 --- /dev/null +++ b/kstartperf/README @@ -0,0 +1,31 @@ + +** kstartperf: startup time measurement for KDE apps ** + +** Usage: + +kstartperf measures startup time for KDE 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 kdecore. + +Geert Jansen <jansen@kde.org>, +20 July 2000 |