From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Profiling emacs. Date: Wed, 25 Mar 2009 18:43:12 +0200 Message-ID: References: <18615722.808621237997378857.JavaMail.www@wwinf4603> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1237999431 18100 80.91.229.12 (25 Mar 2009 16:43:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Mar 2009 16:43:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: alinsoar@voila.fr Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 25 17:45:08 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LmWDr-00014R-7y for ged-emacs-devel@m.gmane.org; Wed, 25 Mar 2009 17:44:59 +0100 Original-Received: from localhost ([127.0.0.1]:38816 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LmWCU-0007YG-AG for ged-emacs-devel@m.gmane.org; Wed, 25 Mar 2009 12:43:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LmWC6-0007TY-Rj for emacs-devel@gnu.org; Wed, 25 Mar 2009 12:43:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LmWC5-0007T5-RG for emacs-devel@gnu.org; Wed, 25 Mar 2009 12:43:10 -0400 Original-Received: from [199.232.76.173] (port=39681 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LmWC5-0007Sy-LO for emacs-devel@gnu.org; Wed, 25 Mar 2009 12:43:09 -0400 Original-Received: from mtaout3.012.net.il ([84.95.2.7]:63510) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LmWC5-0002bX-1h for emacs-devel@gnu.org; Wed, 25 Mar 2009 12:43:09 -0400 Original-Received: from conversion-daemon.i_mtaout3.012.net.il by i_mtaout3.012.net.il (HyperSendmail v2004.12) id <0KH200500MEBHC00@i_mtaout3.012.net.il> for emacs-devel@gnu.org; Wed, 25 Mar 2009 18:43:07 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.23.114]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KH2002XOMFVSFZ0@i_mtaout3.012.net.il>; Wed, 25 Mar 2009 18:43:07 +0200 (IST) In-reply-to: <18615722.808621237997378857.JavaMail.www@wwinf4603> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109834 Archived-At: > From: "A. Soare" > Date: Wed, 25 Mar 2009 17:09:38 +0100 (CET) > > Today I tried to compile Emacs including the profiler like so: > > CFLAGS=-pg LDFLAGS=-pg ./configure --without-x && make > > Emacs creates a profile > > However, when I run ./emacs -Q it creates the same gmon.out at all the times, even if I run and make something in emacs a few seconds or 1 minute. > > -rw-r--r-- 1 root root 4625 2009-03-25 11:45 gmon.out > > Running > gprof emacs gmon.out | less > > it shows just help information, nothing about the symbols of emacs. > > Could you help me with some idea how to compile emacs includin the profiler? This is a commentary from emacs.c: /* Set up for profiling. This is known to work on FreeBSD, GNU/Linux and MinGW. It might work on some other systems too. Give it a try and tell us if it works on your system. To compile for profiling, add -pg to the switches your platform uses in CFLAGS and LDFLAGS. For example: `make CFLAGS="-pg -g -O -DPROFILING=1" LDFLAGS="-pg -g"'. */