MCS manager startup time

Erik Harrison erikharrison at gmail.com
Wed Dec 21 23:03:30 CET 2005


On 12/21/05, Brian J. Tarricone <bjt23 at cornell.edu> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 12/21/2005 1:01 PM, Olivier Fourdan wrote:
> > Hi all,
> >
> > I've just committed a change to the MCS manager that gives the startup
> > time of each plugin.
> >
> > The goal is to pinpoint and optimize the plugins that take longer to load.
> >
> > Just configure xfce-mcs-manager with "--enable-loadprof" and restart the
> > xfce-mcs-manager.
> >
> > Example output:
> >
> > Started /usr/lib/xfce4/mcs-plugins/ui_plugin.so in 0.429829 sec.
> > Started /usr/lib/xfce4/mcs-plugins/keyboard_plugin.so in 0.099960 sec.
> > Started /usr/lib/xfce4/mcs-plugins/mouse_plugin.so in 0.089964 sec.
> > Started /usr/lib/xfce4/mcs-plugins/screensaver_plugin.so in 0.059976 sec.
> > Started /usr/lib/xfce4/mcs-plugins/shortcuts_plugin.so in 0.159937 sec.
> > Started /usr/lib/xfce4/mcs-plugins/display_plugin.so in 0.029988 sec.
> > Started /usr/lib/xfce4/mcs-plugins/sound_settings.so in 0.019992 sec.
> > Started /usr/lib/xfce4/mcs-plugins/session_settings.so in 0.009996 sec.
> > Started /usr/lib/xfce4/mcs-plugins/splash_settings.so in 0.000000 sec.
> > Started /usr/lib/xfce4/mcs-plugins/terminal_settings.so in 0.019992 sec.
> > Started /usr/lib/xfce4/mcs-plugins/backdrop_settings.so in 0.009996 sec.
> > Started /usr/lib/xfce4/mcs-plugins/workspaces_plugin.so in 1.199523 sec.
> > Started /usr/lib/xfce4/mcs-plugins/xfwm4_plugin.so in 0.109956 sec.
> > Started /usr/lib/xfce4/mcs-plugins/orage_plugin.so in 0.039984 sec.
> > Started /usr/lib/xfce4/mcs-plugins/xfprint_plugin.so in 0.000000 sec.
> >
> > Note it requires several runs to show a real trend.
>
> Pretty cool.  I wonder why workspaces_plugin takes so long.  Server
> roundtrips maybe?
>
> Next would be to see *where* these guys are spending their time.
> Sysprof (Linux only, IIRC) is a nice tool for this.

And if you are on Solaris you can use Dtrace, which has no GUI but is
signifigantly more powerful.

>
>         -brian
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (MingW32)
>
> iD8DBQFDqczM6XyW6VEeAnsRAn23AKDHxSdVeR7nG1rEGckmNAlwK8M37ACfejXw
> +LwfW2r9qNNLG/jVhsZzYFA=
> =jgE8
> -----END PGP SIGNATURE-----
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce4-dev
>


--
Erik

"If Beethoven had been killed in a plane crash at the age of 22, it
would have changed the history of music... and of aviation."



More information about the Xfce4-dev mailing list