[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ideas for debugging excessive garbage collection bugs?
From: |
Eli Zaretskii |
Subject: |
Re: Ideas for debugging excessive garbage collection bugs? |
Date: |
Sun, 10 Nov 2002 00:26:32 +0300 |
> From: "William K. Foster" <address@hidden>
> 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.