Hi Tim!
I do not know the answer to your question, but I noticed something else:
trace-calls-to-procedure returns a procedure. That procedure and its
return value can be applied infinitely, it seems:
scheme@(guile-user)> (import (system vm trace))
scheme@(guile-user)> (define (sqr x)
(*
I have used ",trace" before and get what it is supposed to do, but I am not
sure what "trace-calls-to-procedure" is supposed to do ...
;; Using Guile 3.0.4
(use-modules (system vm trace))
(define (sqr x)
(* x x))
(trace-calls-to-procedure sqr)
(sqr 3)
;; ... and nothing happens ... is some