From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: DRI/DRM profiling for performance analysis? Date: Mon, 16 Aug 2010 10:22:35 +0300 Message-ID: <20100816072235.GX2804@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from ydin.reaktio.net (reaktio.net [194.89.68.22]) by gabe.freedesktop.org (Postfix) with ESMTP id 0D39F9E755 for ; Mon, 16 Aug 2010 00:21:15 -0700 (PDT) Content-Disposition: inline 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: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org 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 time. 2) some function is called just a couple of times, but it takes a lot of cpu time. And everything in between.. would be good hints to use for optimizing the apps/drivers, and for comparison between different versions.. Does this make sense? -- Pasi