guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: frames / stacks / source? was Re: coverage/profiling


From: Neil Jerram
Subject: Re: frames / stacks / source? was Re: coverage/profiling
Date: Wed, 10 Jan 2007 08:46:29 +0000
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Han-Wen Nienhuys <address@hidden> writes:

> Neil Jerram escreveu:
>> Do you think you need to do this in C?  (You might do, for reasonable
>> performance - I genuinely don't know yet.)  The evaluator already has
>> hooks (see "Evaluator trap options" in the manual) that allow you to
>> call out to arbitrary Scheme code at the entry and exit of every
>> frame.
>
> address@hidden info]$ guile
> guile> (trap-enable 'enter-frame-handler)
> throw from within critical section.
> Abortado
> address@hidden info]$ 

Takes effect quickly, doesn't it? :-)

What you need is something more like this:

(trap-set! enter-frame-handler
  (lambda (key continuation . args)
    ...))
(trap-enable 'enter-frame)

And it's important to do them in this order.

Regards,
     Neil





reply via email to

[Prev in Thread] Current Thread [Next in Thread]