Announcement

Collapse
No announcement yet.

Messure startup time for a X App

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Messure startup time for a X App

    Hi I want to write a script messuring the time it takes from a user run a command to a graphical (swing swt awt qt gtk ) application is loaded and its widgets are clickable.

    time startapp.sh is useless
    so it
    date
    /usr/share/WHATEVER/app ;
    date

    i see that a windows utility exists



    We should have something similar on Linux

    Ive been thinking about messuring loads of pages modules , xlib calls, blocks for app and timing that but maybe someone has coded it already ????

    Course im looking for a utility or technique as highlevel as possible which can messure startup time of any grafical app that runs on Xorg

  • #2
    The first problem with what you're trying to do is that you have to find a way to figure out when the application has started. And somebody has indeed already thought about this, see
    - http://cgit.freedesktop.org/startup-notification
    - in particular: http://cgit.freedesktop.org/startup-...tification.txt
    This should provide you with a starting point for at least figuring out *when* an application has completed startup.

    How to actually measure all these things that you want to measure? That sounds more complicated. Maybe you can somehow integrate the startup notification with sysprof or oprofile or some other profiling mechanism.

    Comment

    Working...
    X