From owner-freebsd-performance@FreeBSD.ORG Sun Nov 23 23:46:32 2008 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49C171065686 for ; Sun, 23 Nov 2008 23:46:32 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id C712A8FC17 for ; Sun, 23 Nov 2008 23:46:31 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1352725fgb.35 for ; Sun, 23 Nov 2008 15:46:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=5NSlstsAQS8jG+Qlq/nus2UrYQnzkgJzvrGs8nDnxCc=; b=gwbKDXLvD4Qkauvlsx3DFaCSKcRXZB6Mf7ij4iHdFCCBpRWqxCYMQvcLcA2Bug7KsU qCh5foJWH06jxQrJj8lno+Nj5ANuLDHpSZRGVgQSlyV35Afgsk4UButjXKM/ucSf3zac TqcZ8fEBcsLpMYNrpIvoZgYuIjl0d1lCP0KnE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=WqDf0Phr5wlDonYjUpIcYnqdLzMk5uxkw4TBIuScajZuWZAyM0/9/rfuNHRBvGtl8m mQuP2snkjtUlVmDup930pz4J+ZVp90HqQtV4gBEfuGvPP6T1G9QyArET+Z/Fx7roOMif yjTOUhKz+SkjHrNAqEZ2S0F3HgdiStQe5yagA= Received: by 10.86.86.12 with SMTP id j12mr1852531fgb.64.1227483989893; Sun, 23 Nov 2008 15:46:29 -0800 (PST) Received: by 10.86.30.17 with HTTP; Sun, 23 Nov 2008 15:46:29 -0800 (PST) Message-ID: <3bbf2fe10811231546r44bd2aafqa3d714a4955f52ad@mail.gmail.com> Date: Mon, 24 Nov 2008 00:46:29 +0100 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "Alexander Leidinger" In-Reply-To: <20081123205603.17752y578er4bcqo@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3bbf2fe10811230502t3cc52809i6ac91082f780b730@mail.gmail.com> <20081123205603.17752y578er4bcqo@webmail.leidinger.net> X-Google-Sender-Auth: 65f3d96ee3cd32b8 Cc: FreeBSD Arch , freebsd-performance@freebsd.org, Joseph Koshy Subject: Re: [PATCH] pmcannotate tool X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Nov 2008 23:46:32 -0000 2008/11/23, Alexander Leidinger : > Quoting Attilio Rao (from Sun, 23 Nov 2008 14:02:22 > +0100): > > > > pmcannotate is a tool that prints out sources of a tool (in C or > > assembly) with inlined profiling informations retrieved by a prior > > pmcstat analysis. > > If compared with things like callgraph generation, it prints out > > profiling on a per-instance basis and this can be useful to find, for > > example, badly handled caches, too high latency instructions, etc. > > > > Can this also be used to do some code coverage analysis? What I'm > interested in is to enable something, run some tests in userland, disable > this something, and then run a tool which tells me which parts of specific > functions where run or not. Yes, this is exactly what it does. You can see traces for any sampled PC and so get a profiling anslysis on a per-instance basis. Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein