all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs becomes CPU-hungry after some runnig period.
Date: Mon, 28 Jan 2013 10:52:12 +0100	[thread overview]
Message-ID: <87ham13a9f.fsf@web.de> (raw)
In-Reply-To: <mailman.18434.1359290089.855.help-gnu-emacs@gnu.org> (kostafey@gmail.com's message of "Sun, 27 Jan 2013 16:34:44 +0400")

kostafey <kostafey@gmail.com> writes:

> After some running period (about 10-30 minutes) emacs needs
> more and more CPU for simplest operations, like self-insert-command,
> wich runs about a seciond.
> Restarting solves this problem for some minutes.

Dunno why you see that problem.  When I faced such a slowness, most of
the time, there were too many markers or overlays existent in a buffer.

Does the phenomenon you describe appear in all buffers, or are only some
buffers affected?

Anyway, a good way to locate the cause of such problems is using
profiler.el, the Emacs's native profiler.

When the slowness begins, type M-x profiler-start and choose "cpu".
Perform some stuff affected, like self-insert-command or scrolling.
Then type M-x profiler-report.  You'll be presented a tree of functions
that were called, together with their cpu usage.  In your case, I guess
that redisplay_internal will have used most of the cpu time.  You can
expand parts of the tree if you put the cursor on the "+" and hit RET to
find out what stuff caused the slowness.


Michael.



       reply	other threads:[~2013-01-28  9:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.18434.1359290089.855.help-gnu-emacs@gnu.org>
2013-01-28  9:52 ` Michael Heerdegen [this message]
2013-01-27 12:34 Emacs becomes CPU-hungry after some runnig period kostafey
2013-01-27 13:04 ` kostafey
2013-01-27 16:27 ` Peter Dyballa

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

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

  git send-email \
    --in-reply-to=87ham13a9f.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=help-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.