From unknown Wed Jun 18 23:09:35 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3707: add a configure option to enable profiling Reply-To: Dan Nicolaescu , 3707@debbugs.gnu.org Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 28 Jun 2009 21:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 3707 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124622553120681 (code B ref -1); Sun, 28 Jun 2009 21:50:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 28 Jun 2009 21:45:31 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.6 required=4.0 tests=AWL,FOURLA,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5SLjQnE020673 for ; Sun, 28 Jun 2009 14:45:27 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ML2Bi-0001y2-CG for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2009 17:45:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ML2Bd-0001xW-2W for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2009 17:45:26 -0400 Received: from [199.232.76.173] (port=39673 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ML2Bc-0001xT-Uy for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2009 17:45:20 -0400 Received: from sallyv2.ics.uci.edu ([128.195.1.120]:64151) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1ML2Bc-0008IY-GS for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2009 17:45:20 -0400 Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by sallyv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n5SLhfdc016239 for ; Sun, 28 Jun 2009 14:43:41 -0700 (PDT) Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n5SLhf3i014719; Sun, 28 Jun 2009 14:43:41 -0700 (PDT) Date: Sun, 28 Jun 2009 14:43:41 -0700 (PDT) Message-Id: <200906282143.n5SLhf3i014719@godzilla.ics.uci.edu> From: Dan Nicolaescu To: bug-gnu-emacs Lines: 35 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n5SLhfdc016239 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) Building emacs with profiling support is not very straight forward at the moment. It would be better if we had a configure option to do it: ./configure --enable-profiling make Adding the configure flag can be done like this: --- configure.in.~1.600.~ 2009-06-26 18:46:22.000000000 -0700 +++ configure.in 2009-06-28 06:00:37.000000000 -0700 @@ -273,6 +273,18 @@ if test x$ac_gc_check_cons_list != x ; t [Define this to check for errors in cons list.]) fi +AC_ARG_ENABLE(profiling, +[ --enable-profiling + Build emacs with profiling support], +[ac_enable_profiling="${enableval}"],[]) +if test x$ac_enable_profiling != x ; then + PROFILING_CFLAGS="-DPROFLING -pg" + PROFILING_LDFLAGS="-pg" +else + PROFILING_CFLAGS= + PROFILING_LDFLAGS= +fi + #### Make srcdir absolute, if it isn't already. It's important to #### avoid running the path through pwd unnecessarily, since pwd can #### give you automounter prefixes, which can go away. We do all this How can PROFILING_CFLAGS and PROFILING_LDFLAGS be added to the default CFLAGS in the Makefile to enable "make" to just DTRT? From unknown Wed Jun 18 23:09:35 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3707: add a configure option to enable profiling Reply-To: Stefan Monnier , 3707@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 29 Jun 2009 00:35:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3707 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124623529717787 (code B ref -1); Mon, 29 Jun 2009 00:35:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 29 Jun 2009 00:28:17 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5T0SCsc017773 for ; Sun, 28 Jun 2009 17:28:14 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ML4jE-0005Yv-K8 for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2009 20:28:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ML4jA-0005Ss-62 for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2009 20:28:12 -0400 Received: from [199.232.76.173] (port=59770 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ML4j9-0005SW-SL for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2009 20:28:07 -0400 Received: from smtp-04.vtx.ch ([212.147.0.65]:39128) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ML4j9-0001nX-ED for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2009 20:28:07 -0400 Received: from alfajor.home (dyn.144-85-222-231.dsl.vtx.ch [144.85.222.231]) by smtp-04.vtx.ch (VTX Services SA) with ESMTP id 9179829AE99; Mon, 29 Jun 2009 02:28:06 +0200 (CEST) Received: by alfajor.home (Postfix, from userid 20848) id 5A4326433A; Mon, 29 Jun 2009 02:28:06 +0200 (CEST) From: Stefan Monnier To: Dan Nicolaescu Cc: 3707@debbugs.gnu.org, bug-gnu-emacs Message-ID: References: <200906282143.n5SLhf3i014719@godzilla.ics.uci.edu> Date: Mon, 29 Jun 2009 02:28:06 +0200 In-Reply-To: <200906282143.n5SLhf3i014719@godzilla.ics.uci.edu> (Dan Nicolaescu's message of "Sun, 28 Jun 2009 14:43:41 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) > Building emacs with profiling support is not very straight forward at > the moment. > It would be better if we had a configure option to do it: > ./configure --enable-profiling > make > Adding the configure flag can be done like this: Looks good, please install, Stef From unknown Wed Jun 18 23:09:35 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Dan Nicolaescu Subject: bug#3707 closed by Dan Nicolaescu (Re: bug#3707: add a configure option to enable profiling) Message-ID: References: <200907031320.n63DKDhg027537@godzilla.ics.uci.edu> <200906282143.n5SLhf3i014719@godzilla.ics.uci.edu> X-Emacs-PR-Message: they-closed 3707 X-Emacs-PR-Package: emacs Reply-To: 3707@debbugs.gnu.org Date: Fri, 03 Jul 2009 18:15:30 +0000 Content-Type: multipart/mixed; boundary="----------=_1246644930-5783-1" This is a multi-part message in MIME format... ------------=_1246644930-5783-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #3707: add a configure option to enable profiling It has been closed by Dan Nicolaescu . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Dan Nicolaescu by replying to this email. --=20 3707: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D3707 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1246644930-5783-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 3707-done) by emacsbugs.donarmstrong.com; 3 Jul 2009 18:12:35 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-7.1 required=4.0 tests=AWL,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n63ICWlv005245 for <3707-done@emacsbugs.donarmstrong.com>; Fri, 3 Jul 2009 11:12:33 -0700 Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n63DKDZd024881; Fri, 3 Jul 2009 06:20:13 -0700 (PDT) Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n63DKDhg027537; Fri, 3 Jul 2009 06:20:13 -0700 (PDT) Date: Fri, 3 Jul 2009 06:20:13 -0700 (PDT) Message-Id: <200907031320.n63DKDhg027537@godzilla.ics.uci.edu> From: Dan Nicolaescu To: Stefan Monnier Cc: 3707-done@debbugs.gnu.org Subject: Re: bug#3707: add a configure option to enable profiling References: <200906282143.n5SLhf3i014719@godzilla.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: (Stefan Monnier's message of "Mon, 29 Jun 2009 02:28:06 +0200") Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n63DKDZd024881 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu Stefan Monnier writes: > > Building emacs with profiling support is not very straight forward at > > the moment. > > It would be better if we had a configure option to do it: > > > ./configure --enable-profiling > > make > > > Adding the configure flag can be done like this: > > Looks good, please install, Thanks. Done. ------------=_1246644930-5783-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 28 Jun 2009 21:45:31 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.6 required=4.0 tests=AWL,FOURLA,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5SLjQnE020673 for ; Sun, 28 Jun 2009 14:45:27 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ML2Bi-0001y2-CG for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2009 17:45:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ML2Bd-0001xW-2W for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2009 17:45:26 -0400 Received: from [199.232.76.173] (port=39673 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ML2Bc-0001xT-Uy for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2009 17:45:20 -0400 Received: from sallyv2.ics.uci.edu ([128.195.1.120]:64151) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1ML2Bc-0008IY-GS for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2009 17:45:20 -0400 Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by sallyv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n5SLhfdc016239 for ; Sun, 28 Jun 2009 14:43:41 -0700 (PDT) Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n5SLhf3i014719; Sun, 28 Jun 2009 14:43:41 -0700 (PDT) Date: Sun, 28 Jun 2009 14:43:41 -0700 (PDT) Message-Id: <200906282143.n5SLhf3i014719@godzilla.ics.uci.edu> From: Dan Nicolaescu To: bug-gnu-emacs Subject: add a configure option to enable profiling X-Debbugs-No-Ack: yes Lines: 35 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n5SLhfdc016239 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) Building emacs with profiling support is not very straight forward at the moment. It would be better if we had a configure option to do it: ./configure --enable-profiling make Adding the configure flag can be done like this: --- configure.in.~1.600.~ 2009-06-26 18:46:22.000000000 -0700 +++ configure.in 2009-06-28 06:00:37.000000000 -0700 @@ -273,6 +273,18 @@ if test x$ac_gc_check_cons_list != x ; t [Define this to check for errors in cons list.]) fi +AC_ARG_ENABLE(profiling, +[ --enable-profiling + Build emacs with profiling support], +[ac_enable_profiling="${enableval}"],[]) +if test x$ac_enable_profiling != x ; then + PROFILING_CFLAGS="-DPROFLING -pg" + PROFILING_LDFLAGS="-pg" +else + PROFILING_CFLAGS= + PROFILING_LDFLAGS= +fi + #### Make srcdir absolute, if it isn't already. It's important to #### avoid running the path through pwd unnecessarily, since pwd can #### give you automounter prefixes, which can go away. We do all this How can PROFILING_CFLAGS and PROFILING_LDFLAGS be added to the default CFLAGS in the Makefile to enable "make" to just DTRT? ------------=_1246644930-5783-1--