Results 1 to 2 of 2

Thread: Messure startup time for a X App

  1. #1
    Join Date
    Jul 2009
    Posts
    1

    Default 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

    http://blogs.howtogeek.com/mysticgee...with-apptimer/

    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. #2
    Join Date
    Aug 2008
    Posts
    77

    Default

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •