This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: is there a gc hook?


Russell McManus <russell.mcmanus@msdw.com> writes:

> Is there a way for me to time gc runs and print out the results?
> I've got some performance issues I've got to track down, and I didn't
> see anything obvious in the source code.

We've talked about adding C-level gc hooks to register a single C
function to be called at start of GC and another at end of GC.  Those
functions would have to carefully not allocate a cell or otherwise mess
with the Scheme heap, or else undefined behaviour.  I'd certainly be
happy with (the fairly straightforward) patch to support this, and will
do it if no-one else submits something, and others agree that it'd be a
useful feature to have.

Greg

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]