From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: Ideas for debugging excessive garbage collection bugs? Date: Sun, 10 Nov 2002 00:26:32 +0300 Sender: emacs-devel-admin@gnu.org Message-ID: <1659-Sun10Nov2002002629+0200-eliz@is.elta.co.il> References: <5.1.1.6.2.20021108101539.0206ed10@pophost.synopsys.com> <5.1.1.6.2.20021108113425.02089a28@pophost.synopsys.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1036881635 30365 80.91.224.249 (9 Nov 2002 22:40:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 9 Nov 2002 22:40:35 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18AeHI-0007tb-00 for ; Sat, 09 Nov 2002 23:40:32 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18AeRS-0000fZ-00 for ; Sat, 09 Nov 2002 23:51:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18AeI3-0000eO-00; Sat, 09 Nov 2002 17:41:19 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18Ae3z-0004t4-00 for emacs-devel@gnu.org; Sat, 09 Nov 2002 17:26:47 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18Ae3w-0004o5-00 for emacs-devel@gnu.org; Sat, 09 Nov 2002 17:26:45 -0500 Original-Received: from freya.inter.net.il ([192.114.186.14]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18Ae3v-0004AL-00 for emacs-devel@gnu.org; Sat, 09 Nov 2002 17:26:44 -0500 Original-Received: from zaretsky (adsl-ayalon-pc-128-98.inter.net.il [213.8.128.98]) by freya.inter.net.il (Mirapoint Messaging Server MOS 3.2.1-GA) with ESMTP id BYB12328; Sun, 10 Nov 2002 00:25:47 +0200 (IST) Original-To: William.Foster@synopsys.com X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <5.1.1.6.2.20021108113425.02089a28@pophost.synopsys.com> (William.Foster@synopsys.com) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9294 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9294 > From: "William K. Foster" > Date: Fri, 08 Nov 2002 11:36:30 -0800 > > How do I debug the source of allocations in Emacs? You could invoke (print (garbage-collect)) frequently and find the part of its report that grows the most. That would tell you what objects are being consed very frequently. Then you could put a breakpoint at the C function which allocates that type of Lisp objects, and see what the backtrace shows when the breakpoint is hit.