From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: DRI/DRM profiling for performance analysis? Date: Tue, 17 Aug 2010 10:23:44 +0300 Message-ID: <20100817072344.GC2804@reaktio.net> References: <20100816072235.GX2804@reaktio.net> <8739udc1t5.fsf@pollan.anholt.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from ydin.reaktio.net (reaktio.net [194.89.68.22]) by gabe.freedesktop.org (Postfix) with ESMTP id 25BA99E7A8 for ; Tue, 17 Aug 2010 00:23:46 -0700 (PDT) Content-Disposition: inline In-Reply-To: <8739udc1t5.fsf@pollan.anholt.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: Eric Anholt Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Mon, Aug 16, 2010 at 09:15:18PM -0700, Eric Anholt wrote: > On Mon, 16 Aug 2010 10:22:35 +0300, Pasi K=E4rkk=E4inen wr= ote: > > Hello, > > = > > Do we currently have a method of profiling DRI/DRM drivers? > > = > > I was thinking that it would be interesting to: > > = > > 1) Execute a benchmark, or some "timedemo" of a game > > 2) See how many times each dri/drm driver function is called, = > > maybe top 20 most often called functions, = > > and the total cpu time used for those functions. > > = > > So you could see that: > > = > > 1) some function is called often, but it doesn't take much total cpu ti= me. > > 2) some function is called just a couple of times, but it takes a lot o= f cpu time. > > = > > And everything in between.. would be good hints to use for optimizing t= he apps/drivers, > > and for comparison between different versions.. > > = > > Does this make sense? = > = > 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. Thanks! That might make interesting addition to things like Phoronix benchmarks.. to compare the differences between driver versions. -- Pasi