Hey, This week a whole bunch of Sun software people are involved in a Solaris desktop performance summit. While Alan was talking about what was happening in the X server space, he mentioned a useful little tool called 'xrestop'. Xrestop is a 'top' like utility that can be used to provide useful information about what's happening in the Xserver in terms of resource usage.
http://www.freedesktop.org/Software/xrestop Since it doesn't seem to be installed by default on my version of Nevada [hopefully it will in the future], I figured I would create a package for it. You can used the attached spec file in conjunction with the JDS build system [shameless plug] to create a package - it's an easy ./configure;make;make install otherwise. Real useful developer utility - thanks Alan for pointing it out! :) Rock on. Glynn -------------- next part -------------- # # spec file for package SUNWxrestop.spec # # Copyright (c) 2004 Sun Microsystems, Inc. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # %include Solaris.inc Name: SUNWxrestop Summary: xrestop Version: 0.3 Source: http://www.freedesktop.org/software/%{summary}/%{summary}-%{version}.tar.gz SUNW_BaseDir: %{_basedir} BuildRoot: %{_tmppath}/%{name}-%{version}-build %include default-depend.inc %prep %setup -q -n xrestop-%version %build CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` if test "x$CPUS" = "x" -o $CPUS = 0; then CPUS=1 fi export CFLAGS="%optflags -I/usr/sfw/include -DANSICPP" export RPM_OPT_FLAGS="$CFLAGS" export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" export PERL5LIB=%{_prefix}/perl5/site_perl/5.6.1/sun4-solaris-64int export CPPFLAGS="-I/usr/sfw/include" export LDFLAGS="-L/usr/sfw/lib -R/usr/sfw/lib" export MSGFMT="/usr/bin/msgfmt" %define xrestop_prefix %{_basedir}/X11 %define xrestop_bindir %{xrestop_prefix}/bin %define xrestop_libdir %{xrestop_prefix}/lib %define xrestop_libexecdir %{xrestop_prefix}/lib %define xrestop_includedir %{xrestop_prefix}/include %define xrestop_sysconfdir /etc %define xrestop_datadir %{xrestop_prefix}/share %define xrestop_mandir %{xrestop_datadir}/man ./configure --prefix=%{xrestop_prefix} \ --mandir=%{xrestop_mandir} \ --libdir=%{xrestop_libdir} \ --libexecdir=%{xrestop_libexecdir} \ --sysconfdir=%{xrestop_sysconfdir} make -j$CPUS %install make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr (-, root, bin) %dir %attr (0755, root, bin) %{xrestop_bindir} %{xrestop_bindir}/* %dir %attr (0755, root, bin) %{xrestop_datadir} %dir %attr(0755, root, bin) %{xrestop_mandir} %dir %attr(0755, root, bin) %{xrestop_mandir}/man1 %{xrestop_mandir}/man1/* %changelog * Wed Dec 7 2005 - glynn.foster at sun.com - Initial spec
