guile-devel
[Top][All Lists]
Advanced

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

Question about (debug-enable 'trace) vs (trap-enable ...)


From: Rob Browning
Subject: Question about (debug-enable 'trace) vs (trap-enable ...)
Date: 05 Apr 2001 16:04:36 -0500
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

I'm trying to see if I can get a fairly simple (though good enough for
our needs) profiler up and working using your debug.scm as a guide.

I've gotten a trivial (empty) framework up and working using
(debug-enable 'trace), but for my first attempt I thought perhaps it
would be better to just use 

  (trap-enable 'apply-frame)
  (trap-enable 'exit-frame)

directly, and perform my checking inside my handlers.  Of course now I
realize that's going to be a lot slower than using the trace
infrastructure, but I still was curious if that would even be a viable
approach.  It seemed not since defining apply-frame and exit frame
would just crash guile.  I presume that's because I was causing
infinite recursion by executing any code inside the handlers.  Is that
a correct analysis?

Thanks

-- 
Rob Browning <address@hidden> PGP=E80E0D04F521A094 532B97F5D64E3930



reply via email to

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