Re: Here's a guile profiling tool/a question/a *remarkable* guile fact (was Re: Guile profiling tool

Christian Lynbech (chl@tbit.dk)
Mon, 17 Aug 1998 09:47:17 +0200 (MET DST)

>>>>> "Harvey" == Harvey J Stein <hjstein@bfr.co.il> writes:

Harvey> What I really meant was where in the code is it taken into effect. I
Harvey> wanted to know a little more about what exactly is possible with the
Harvey> tracing facility.

It me some grepping around in the code to find it, but it happens
inside the evaluator (which has bits scattered all over eval.c, but
think of scm_deval). The evalutor uses the macro ENTER_APPLY when
preparing to evaluate an apply. This checks whether tracing is
applicable for the current application (or if the apply eval trap is
set) and if so, does a throw with key `enter-frame'. This is caught
somewhere up in the repl loop (see boot-9.scm), in
`lazy-handler-dispatch' which is the one that finally calls the value
of `apply-frame-handler'.

---------------------------+--------------------------------------------------
Christian Lynbech | Telebit Communications A/S
Fax: +45 8628 8186 | Fabrik 11, DK-8260 Viby J
Phone: +45 8628 8177 + 28 | email: chl@tbit.dk --- URL: http://www.telebit.dk
---------------------------+--------------------------------------------------
Hit the philistines three times over the head with the Elisp reference manual.
- petonic@hal.com (Michael A. Petonic)