From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jude DaShiell Newsgroups: gmane.emacs.help Subject: Re: Debugging advice Date: Fri, 16 Jun 2017 18:02:25 -0400 (EDT) Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Trace: blaine.gmane.org 1497650589 6922 195.159.176.226 (16 Jun 2017 22:03:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Jun 2017 22:03:09 +0000 (UTC) User-Agent: Alpine 2.20 (NEB 67 2015-01-07) To: Stefan Monnier , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 17 00:03:06 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLzKb-0001XD-7p for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Jun 2017 00:03:05 +0200 Original-Received: from localhost ([::1]:60849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLzKg-0001hh-62 for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Jun 2017 18:03:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLzK6-0001hR-6X for help-gnu-emacs@gnu.org; Fri, 16 Jun 2017 18:02:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLzK3-00026P-4r for help-gnu-emacs@gnu.org; Fri, 16 Jun 2017 18:02:34 -0400 Original-Received: from mailbackend.panix.com ([166.84.1.89]:34889) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dLzK3-00025X-0e for help-gnu-emacs@gnu.org; Fri, 16 Jun 2017 18:02:31 -0400 Original-Received: from panix1.panix.com (panix1.panix.com [166.84.1.1]) by mailbackend.panix.com (Postfix) with ESMTP id E105E1024B; Fri, 16 Jun 2017 18:02:25 -0400 (EDT) Original-Received: by panix1.panix.com (Postfix, from userid 20712) id C0B8A14B9D; Fri, 16 Jun 2017 18:02:25 -0400 (EDT) Original-Received: from localhost (localhost [127.0.0.1]) by panix1.panix.com (Postfix) with ESMTP id BD33414B98; Fri, 16 Jun 2017 18:02:25 -0400 (EDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux (Android) [fuzzy] X-Received-From: 166.84.1.89 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:113497 Archived-At: I wonder, can something be put in a .emacs file so when emacs encounters an initialization error the first problem line number in the .emacs file would be stated automatically? On Fri, 16 Jun 2017, Stefan Monnier wrote: > Date: Fri, 16 Jun 2017 17:16:38 > From: Stefan Monnier > To: help-gnu-emacs@gnu.org > Subject: Re: Debugging advice > >> My environment is (maybe unfortunately) Cygwin64 under Windows, of course. >> Occasionally while working emacs stops responding to me and I watch it's >> memory consumption rise from 407MB to 1533MB along with a ramp in CPU usage. >> I want to find out what it is doing and can not find any information on how >> to monitor background activity in Emacs. > > A tool I've used for that in the past is the cpu profiler. Try to > M-x profiler-start, then try and reproduce the problem and then M-x > profiler-report. > > > Stefan > > > --