[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how do you track down emacs memory leaks?
From: |
Chong Yidong |
Subject: |
Re: how do you track down emacs memory leaks? |
Date: |
Sat, 20 Dec 2008 15:39:33 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
"Ami Fischman" <address@hidden> writes:
> Since this thread was about debugging methods, I figured I'd add to it
> the way that I finally found the culprit:
>
> (defun ami-big-var-p (sym)
> (when (and (boundp sym)
> (> (length (prin1-to-string (symbol-value sym))) (* 1024 1024)))
> t))
> (mapatoms '(lambda (sym)
> (when (ami-big-var-p sym)
> (message (symbol-name sym)))))
>
> This led me to the insanely large variable and from there it was just
> a matter of tracking down its construction.
Thanks. Could you write this up into something that can go into
etc/DEBUG?