[Top][All Lists]
[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
- coverage/profiling, Han-Wen Nienhuys, 2007/01/02
- frames / stacks / source? was Re: coverage/profiling, Han-Wen Nienhuys, 2007/01/08
- Re: frames / stacks / source? was Re: coverage/profiling, Ludovic Courtès, 2007/01/09
- Re: frames / stacks / source? was Re: coverage/profiling, Kevin Ryde, 2007/01/09
- Re: frames / stacks / source? was Re: coverage/profiling, Neil Jerram, 2007/01/09
- Re: frames / stacks / source? was Re: coverage/profiling, Ludovic Courtès, 2007/01/10
- Re: frames / stacks / source? was Re: coverage/profiling, Han-Wen Nienhuys, 2007/01/10
- Re: frames / stacks / source? was Re: coverage/profiling, Kevin Ryde, 2007/01/17
- Re: frames / stacks / source? was Re: coverage/profiling, Han-Wen Nienhuys, 2007/01/10
- Re: frames / stacks / source? was Re: coverage/profiling, Ludovic Courtès, 2007/01/11
- Re: frames / stacks / source? was Re: coverage/profiling, Han-Wen Nienhuys, 2007/01/11
- Re: frames / stacks / source? was Re: coverage/profiling, Ludovic Courtès, 2007/01/11
- Re: frames / stacks / source? was Re: coverage/profiling, Neil Jerram, 2007/01/13
- Re: frames / stacks / source? was Re: coverage/profiling, Kevin Ryde, 2007/01/18