From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Something about elp I need help with. Date: Sat, 14 Jan 2012 15:46:14 +0000 Message-ID: <20120114154614.GA14617@acm.acm> References: <20120113160308.GA5792@acm.acm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1326556390 4972 80.91.229.12 (14 Jan 2012 15:53:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 14 Jan 2012 15:53:10 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 14 16:53:06 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rm5uk-0004mv-Ga for ged-emacs-devel@m.gmane.org; Sat, 14 Jan 2012 16:53:06 +0100 Original-Received: from localhost ([::1]:33659 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rm5uj-00015x-DC for ged-emacs-devel@m.gmane.org; Sat, 14 Jan 2012 10:53:05 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:57657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rm5uh-00015s-6r for emacs-devel@gnu.org; Sat, 14 Jan 2012 10:53:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rm5ud-000529-3n for emacs-devel@gnu.org; Sat, 14 Jan 2012 10:53:03 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:44776 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rm5uc-00051t-CB for emacs-devel@gnu.org; Sat, 14 Jan 2012 10:52:58 -0500 Original-Received: (qmail 60942 invoked by uid 3782); 14 Jan 2012 15:52:55 -0000 Original-Received: from acm.muc.de (pD951B97F.dip.t-dialin.net [217.81.185.127]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 14 Jan 2012 16:52:53 +0100 Original-Received: (qmail 14624 invoked by uid 1000); 14 Jan 2012 15:46:14 -0000 Content-Disposition: inline In-Reply-To: <20120113160308.GA5792@acm.acm> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147658 Archived-At: On Fri, Jan 13, 2012 at 04:03:09PM +0000, Alan Mackenzie wrote: > Hi, Emacs. > Whilst trying to track down what is dragging in a fontification event, I > get the following output from elp-results (blank lines added for > clarity): > Function Name Call Count Elapsed Time Average Time > c-beginning-of-decl-1 90 8.767888 0.0974209777 > c-beginning-of-statement-1 103 8.7664949999 0.0851116019 > c-crosses-statement-barrier-p 14519 7.6718619999 0.0005284015 > c-at-macro-vsemi-p 20230 4.3577799999 0.0002154117 > c-in-literal 20230 3.8880240000 0.0001921910 > c-literal-limits 22322 2.2931949999 0.0001027325 > c-backward-sws 72797 0.9805889999 1.347...e-05 > c-state-safe-place 31416 0.3780669999 1.203...e-05 > c-beginning-of-macro 44678 0.3394430000 7.597...e-06 > c-font-lock-declarations 8 0.2129779999 0.0266222499 <======== > c-find-decl-spots 8 0.2129130000 0.0266141250 > c-parse-state 177 0.1174700000 0.0006636723 > All these functions down to c-font-lock-declarations are low level > functions, called only from other CC Mode ones. Yet there don't seem to > be any HL functions calling the LL ones at the top, such as > c-beginning-of-decl-1. > How can this be? What have I misunderstood about elp? I've worked it out, now. There was a macro generated function called directly from font-lock. It was the "missing" high level function. > Thanks for the help! -- Alan Mackenzie (Nuremberg, Germany).