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
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.