You are not logged in.
Hi!
Is there a way to measure the startup time of an gui-application, for example firefox, beside using a real stopwatch :-)? I think the first problem is, to give a criterion, when the app. is fully loaded; the second one is to measure this time.
cm100
Offline
$ man time
Offline
Take care, for most applications the loading time is dominated by loading libraries / other files from the file system. Due to cache, when you load the same application again or another application that share libraries, it will probably take less time to start, rendering the comparison incorrect (or at least incomplete).
Offline
Thanks, "time" is nice. However is it possible to determine the moment when the app is fully loaded automatically?
Take care, for most applications the loading time is dominated by loading libraries / other files from the file system. Due to cache, when you load the same application again or another application that share libraries, it will probably take less time to start, rendering the comparison incorrect (or at least incomplete).
Yes that's true. I am mainly interested in cold starts, but I think
echo 3 > /proc/sys/vm/drop_caches
should do the job !?
Offline
You'll have to create a counter in the source of the application that logs to a file or whatever.
time firefox will not work since it'll measure the time from that you've started it until you've terminated it.
Offline
Pro-tip for browsers: Make it load a site that's under your control (= you can read the webserver logs) at startup, via the homepage or session settings.
1000
Offline
Heh, that was nifty... But are you sure the browser is 'fully loaded'?
Offline