[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Measuring startup latency
From:       Geert Jansen <g.t.jansen () stud ! tue ! nl>
Date:       2000-07-19 14:24:14
[Download RAW message or body]

Hi,

just wrote a little utility called kstartperf. It measures an app's startup 
latency accurately within a few milliseconds.

From the README:

** How does it work?
 
1. KStartPerf sets an environment variable (KSTARTPERF) to the current time.
2. KStartPerf executes the requested comand command with an LD_PRELOAD
   library which overrides XMapWindow.
3. As soon as the app calls XMapWindow (this is the point where we assume
   that the app has "started up"), the overrided function gets called which
   calculated the time difference between the current time and the time
   stored in the KSTARTPERF environment variable. This value is printed to
   standard error.
4. The overridden XMapWindow calls the original XMapWindow and everything
   else continues normally.

Anyone interested? 

Greetings,
Geert

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic