From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QCVYq-00016Z-QD for garchives@archives.gentoo.org; Wed, 20 Apr 2011 11:27:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5F9541C086; Wed, 20 Apr 2011 11:26:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2A5061C086 for ; Wed, 20 Apr 2011 11:26:15 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E1C761B408E for ; Wed, 20 Apr 2011 11:26:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 459D98022E for ; Wed, 20 Apr 2011 11:26:13 +0000 (UTC) From: "Petteri Räty" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Petteri Räty" Message-ID: <2bb543bdcde31f9a84b9c54ce367d374d4247553.betelgeuse@gentoo> Subject: [gentoo-commits] proj/libbash:master commit in: / X-VCS-Repository: proj/libbash X-VCS-Files: Makefile.am X-VCS-Directories: / X-VCS-Committer: betelgeuse X-VCS-Committer-Name: Petteri Räty X-VCS-Revision: 2bb543bdcde31f9a84b9c54ce367d374d4247553 Date: Wed, 20 Apr 2011 11:26:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 98139923058da3fc9b1a8b34df45bfce commit: 2bb543bdcde31f9a84b9c54ce367d374d4247553 Author: Petteri R=C3=A4ty petteriraty eu> AuthorDate: Tue Apr 19 19:33:44 2011 +0000 Commit: Petteri R=C3=A4ty gentoo org> CommitDate: Wed Apr 20 11:22:48 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/libbash.git;a= =3Dcommit;h=3D2bb543bd Build: callgrind_annotate support Instead of just running callgrind to get the total number of instructions executed the benchmark_parser target now also runs callgrind_annotate to get information where time is spent. --- Makefile.am | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index c20601c..60a98fa 100644 --- a/Makefile.am +++ b/Makefile.am @@ -128,7 +128,8 @@ CLEANFILES =3D $(GENERATED_PARSER_C) \ javagrammar.run \ cgrammar.run \ walker.run \ - massif.out + massif.out \ + callgrind.out =20 lib_LTLIBRARIES =3D libcppbash.la libcppbash_la_SOURCES =3D src/common.h \ @@ -215,7 +216,10 @@ massif.out: ast_printer massif: massif.out ms_print --threshold=3D10 $< =20 -benchmark_parser: ast_printer +callgrind.out: ast_printer libtool --mode=3Dexecute valgrind \ - --tool=3Dcallgrind --callgrind-out-file=3D/dev/null \ + --tool=3Dcallgrind --callgrind-out-file=3Dcallgrind.out \ ./ast_printer -s -f /usr/portage/eclass/versionator.eclass + +benchmark_parser: callgrind.out + callgrind_annotate callgrind.out