A poor man's scheme profiler

1 year ago by Phil Dawes

Gambit scheme lacks a profiler that can profile scheme with embedded C code. (There’s statprof, but unfortunately it doesn’t profile embeded C). I needed to do this pretty desperately for my triple indexing stuff so I’ve written a simple macro which takes wall clock timings of functions and accumulates them. You replace ‘define’ with ‘define-timed’ in the functions you want profiled ... Continue reading

Source: www.phildawes.net