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: Something about elp I need help with. Date: Fri, 13 Jan 2012 16:03:09 +0000 Message-ID: <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 1326471006 32719 80.91.229.12 (13 Jan 2012 16:10:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Jan 2012 16:10:06 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 13 17:09:59 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 1RljhW-0001pg-22 for ged-emacs-devel@m.gmane.org; Fri, 13 Jan 2012 17:09:58 +0100 Original-Received: from localhost ([::1]:36215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RljhV-00041n-IG for ged-emacs-devel@m.gmane.org; Fri, 13 Jan 2012 11:09:57 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RljhN-00041h-VE for emacs-devel@gnu.org; Fri, 13 Jan 2012 11:09:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RljhM-0003x7-RK for emacs-devel@gnu.org; Fri, 13 Jan 2012 11:09:49 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:62007 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RljhM-0003wx-Eh for emacs-devel@gnu.org; Fri, 13 Jan 2012 11:09:48 -0500 Original-Received: (qmail 67164 invoked by uid 3782); 13 Jan 2012 16:09:46 -0000 Original-Received: from acm.muc.de (pD95569B2.dip.t-dialin.net [217.85.105.178]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 13 Jan 2012 17:09:45 +0100 Original-Received: (qmail 5839 invoked by uid 1000); 13 Jan 2012 16:03:09 -0000 Content-Disposition: inline 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:147646 Archived-At: 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? Thanks for the help! -- Alan Mackenzie (Nuremberg, Germany).