From: Cody Goodman <codygman.consulting@gmail.com>
To: emacs-devel@gnu.org
Subject: Help debugging elisp and emacs display engine
Date: Thu, 26 Nov 2015 17:35:17 -0600 [thread overview]
Message-ID: <CADq_+R3Ser5G3-EobyBA3hP5v8ofOM-_r=+n=iCuh0iOS7uk9Q@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1599 bytes --]
I'm trying to debug emacs scrolling issues in long files, this elisp[0]
doesn't seem to benchmark the redrawing or slownesses and claims "Elapsed
time: 0.000003s". I'm guessing this is because of the problem residing in
the display engine that is written in C?
I'm also trying to follow how scroll-up-command passes values or sends
arguments to the display engine so I know where to start profiling it and
digging deeper into this problem.
When I get the following cpu report, it's not clear where/how the display
engine is called:
- command-execute 3526 99%
- call-interactively 3526 99%
- funcall-interactively 3147 88%
- scroll-up-command 2900 81%
- apply 2900 81%
- #<compiled 0x8db10b> 2900 81%
- apply 2896 81%
#<compiled 0x22d001> 2896 81%
How do I begin to debug these compiled functions? How do I trace the
context/variables that apply might send to the display engine?
Thanks in advance for any help.
0: elisp code
(defun test-long-line-scrolling (n)
(with-selected-window (get-buffer-window "long-lines-file-test-emacs.txt")
(goto-char (point-max))
(dolist '(number-sequence 0 n)
(scroll-down))))
;; TODO: lookup how benchmark works
(benchmark 10 (test-long-line-scrolling 100))
[-- Attachment #2: Type: text/html, Size: 2156 bytes --]
next reply other threads:[~2015-11-26 23:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-26 23:35 Cody Goodman [this message]
2015-11-27 4:32 ` Help debugging elisp and emacs display engine Noam Postavsky
2015-11-27 4:51 ` John Mastro
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='CADq_+R3Ser5G3-EobyBA3hP5v8ofOM-_r=+n=iCuh0iOS7uk9Q@mail.gmail.com' \
--to=codygman.consulting@gmail.com \
--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).