From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michal Sojka Newsgroups: gmane.emacs.help Subject: Re: High CPU load after pressing arbitrary key (mostly in C mode) Date: Thu, 18 Aug 2011 14:08:54 +0200 Message-ID: <4E4D00D6.1060702@os.inf.tu-dresden.de> References: <87ty9gf2va.fsf@steelpick.2x.cz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1313703693 31955 80.91.229.12 (18 Aug 2011 21:41:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Aug 2011 21:41:33 +0000 (UTC) Cc: Emacs mailing list To: suvayu ali Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 18 23:41:30 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 1QuALB-0002o2-JR for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Aug 2011 23:41:29 +0200 Original-Received: from localhost ([::1]:55493 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuALB-0001fo-7Z for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Aug 2011 17:41:29 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qu1P8-0004jo-70 for help-gnu-emacs@gnu.org; Thu, 18 Aug 2011 08:08:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qu1P5-0000oa-UG for help-gnu-emacs@gnu.org; Thu, 18 Aug 2011 08:08:58 -0400 Original-Received: from os.inf.tu-dresden.de ([141.76.48.99]:40016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qu1P5-0000oM-O6 for help-gnu-emacs@gnu.org; Thu, 18 Aug 2011 08:08:55 -0400 Original-Received: from [2002:8d4c:3001:48:21a:4bff:fe6f:b08a] by os.inf.tu-dresden.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) id 1Qu1P4-00034u-KK; Thu, 18 Aug 2011 14:08:54 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Icedove/3.1.11 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 141.76.48.99 X-Mailman-Approved-At: Thu, 18 Aug 2011 17:41:26 -0400 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:81977 Archived-At: On 08/18/2011 01:59 PM, suvayu ali wrote: > 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. Thanks for reply. I have tried this, but the backtrace was almost empty every time. It seems that C-g was processed only after the previous keys, which caused the load, were processed :-( -Michal