From: Eric Anholt Subject: Re: DRI/DRM profiling for performance analysis? Date: Mon, 16 Aug 2010 21:15:18 -0700 Message-ID: <8739udc1t5.fsf@pollan.anholt.net> References: <20100816072235.GX2804@reaktio.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1832730776==" Return-path: In-Reply-To: <20100816072235.GX2804@reaktio.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Pasi =?utf-8?B?S8Okcmtrw6RpbmVu?= , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1832730776== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, 16 Aug 2010 10:22:35 +0300, Pasi K=C3=A4rkk=C3=A4inen wrote: > Hello, >=20 > Do we currently have a method of profiling DRI/DRM drivers? >=20 > I was thinking that it would be interesting to: >=20 > 1) Execute a benchmark, or some "timedemo" of a game > 2) See how many times each dri/drm driver function is called,=20 > maybe top 20 most often called functions,=20 > and the total cpu time used for those functions. >=20 > So you could see that: >=20 > 1) some function is called often, but it doesn't take much total cpu time. > 2) some function is called just a couple of times, but it takes a lot of = cpu time. >=20 > And everything in between.. would be good hints to use for optimizing the= apps/drivers, > and for comparison between different versions.. >=20 > Does this make sense?=20 The tool to use is called "sysprof" and is ridiculously easy to use (on 32-bit x86). Click start, click stop, see where time was spent, go fix that. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkxqDNYACgkQHUdvYGzw6vfhbQCeNu7ixe6XWeeNV8HkXQRxRj25 4CAAn1fY5SVoxK7nv3VykD4NArewvJ+R =b8Np -----END PGP SIGNATURE----- --=-=-=-- --===============1832730776== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1832730776==--