unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: emacs-devel@gnu.org
Subject: Re: Something about elp I need help with.
Date: Sat, 14 Jan 2012 15:46:14 +0000	[thread overview]
Message-ID: <20120114154614.GA14617@acm.acm> (raw)
In-Reply-To: <20120113160308.GA5792@acm.acm>

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).



  reply	other threads:[~2012-01-14 15:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-13 16:03 Something about elp I need help with Alan Mackenzie
2012-01-14 15:46 ` Alan Mackenzie [this message]
2012-01-15 16:38   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120114154614.GA14617@acm.acm \
    --to=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).