From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: Memory leak due to bidi? Date: Tue, 02 Aug 2011 22:12:51 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312315990 5144 80.91.229.12 (2 Aug 2011 20:13:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 2 Aug 2011 20:13:10 +0000 (UTC) Cc: Eli Zaretskii , Stefan Monnier , emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 02 22:13:05 2011 Return-path: Envelope-to: ged-emacs-devel@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 1QoLKq-00049U-IH for ged-emacs-devel@m.gmane.org; Tue, 02 Aug 2011 22:13:04 +0200 Original-Received: from localhost ([::1]:35621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoLKq-0001XS-1Q for ged-emacs-devel@m.gmane.org; Tue, 02 Aug 2011 16:13:04 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoLKm-0001Uv-VT for emacs-devel@gnu.org; Tue, 02 Aug 2011 16:13:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QoLKl-0004Zu-7l for emacs-devel@gnu.org; Tue, 02 Aug 2011 16:13:00 -0400 Original-Received: from batman.blixtvik.net ([87.96.254.3]:55926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoLKh-0004ZB-Ht; Tue, 02 Aug 2011 16:12:55 -0400 Original-Received: from localhost.localdomain (139-210-96-87.cust.blixtvik.se [87.96.210.139]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by batman.blixtvik.net (Postfix) with ESMTP id 52DC57F8635; Tue, 2 Aug 2011 22:12:51 +0200 (CEST) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Tue, 02 Aug 2011 21:16:03 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 87.96.254.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:142752 Archived-At: Lars Magne Ingebrigtsen writes: > Stefan Monnier writes: > >> BTW, this problem is new: I've been running with bidi-display-reordering >> set to t for more than a year now and the problem only appeared in the >> last couple of weeks. > > Has anybody written an, er, memory usage statistics thing? > > That is, something that could summarise memory usage by bytes used in > buffers, in strings, in conses and "rest", which would be pure C-level > allocations. (garbage-collect) memory-usage.el makes it human readable. I used to have lots of memory issues. At the time I made the following notes: - create a memory meter in the modeline, then it would at least be possible to see when memory is consumed, and maybe get a clue. - modify the garbage collector, to make some form of dump to a file, when the mark stage occurs. (this is like the "jhat" java tool) - modify the garb so as to flag an object for pretend delete. then a pretend garb would be done, and a measure of how much memory would be reclaimed if that object was to be deleted would be returned. -- Joakim Verona