On Tue 17 Sep 2013 14:37, Panicz Maciej Godek <godek.mac...@gmail.com> writes:
> So my question is: what is the status of the statprof? It's fine :) > (define (increase x) > (sleep 1) > (1+ x)) > > (begin > (statprof-reset 0 500 #t) > (statprof-start) > (let loop ((i 0)) > (if (< i 10) > (loop (increase i)) > i)) > (statprof-stop) > (statprof-display)) Statprof runs on SIGPROF ticks, driven by setitimer. These ticks run after a constant amount of CPU time spent. Your test doesn't consume any CPU time because it's sleeping, so no ticks get recorded. Also note that using the "statprof" function is much easier. Cheers, Andy -- http://wingolog.org/