From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: suvayu ali Newsgroups: gmane.emacs.help Subject: Re: High CPU load after pressing arbitrary key (mostly in C mode) Date: Thu, 18 Aug 2011 13:59:03 +0200 Message-ID: References: <87ty9gf2va.fsf@steelpick.2x.cz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1313668777 2799 80.91.229.12 (18 Aug 2011 11:59:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Aug 2011 11:59:37 +0000 (UTC) Cc: Emacs mailing list To: Michal Sojka Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 18 13:59:33 2011 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Qu1G0-0004Q4-OL for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Aug 2011 13:59:32 +0200 Original-Received: from localhost ([::1]:41415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qu1Fz-0001Lw-Tz for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Aug 2011 07:59:31 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qu1Fv-0001KI-7r for help-gnu-emacs@gnu.org; Thu, 18 Aug 2011 07:59:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qu1Fu-0006HL-4v for help-gnu-emacs@gnu.org; Thu, 18 Aug 2011 07:59:27 -0400 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:51753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qu1Ft-0006Gm-Cj for help-gnu-emacs@gnu.org; Thu, 18 Aug 2011 07:59:26 -0400 Original-Received: by bkbzt4 with SMTP id zt4so1677878bkb.0 for ; Thu, 18 Aug 2011 04:59:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=cosD2h8YF/7x2FpXBHXCODdeY3nM+XlTFBMyUAor+AI=; b=MC7WoLF41PiLDQVU5md6QIteaRZt6pTtKh2VfihfhmAE3yV2f7Sicl5q1cbe/oHDjt hRTkKJHiJsWr0xAEB2HTgzPS9BKsqJGYmJOIBqsYt2wKXhZ4Zll5PT/l2Rar6k2wRoev s4hV2jpqEFgy0uYBTo9fMVR9tkpOL6cwyPbaY= Original-Received: by 10.204.232.141 with SMTP id ju13mr300293bkb.252.1313668763301; Thu, 18 Aug 2011 04:59:23 -0700 (PDT) Original-Received: by 10.204.13.67 with HTTP; Thu, 18 Aug 2011 04:59:03 -0700 (PDT) In-Reply-To: <87ty9gf2va.fsf@steelpick.2x.cz> X-Google-Sender-Auth: bEm6WjPF6fCBqsw8Bdux45UBf40 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81972 Archived-At: On Wed, Aug 17, 2011 at 5:56 PM, Michal Sojka wrote: > I workaround this by exiting emacs and starting it again. Is there any > way how to debug such problems. For example tracing all functions that > are called when a key is pressed? > My lisp know-how is not that great. However AFAIU, you can toggle debug on quit and debug on error. Then when the slow down happens, press any key and as the CPU load goes up hit quit (C-g). If that triggers the debugger you could get some hints from there. GL. -- Suvayu Open source is the future. It sets us free.