How do I profile in DrScheme?
Posted
by kunjaan
on Stack Overflow
See other posts from Stack Overflow
or by kunjaan
Published on 2009-07-01T02:52:00Z
Indexed on
2010/06/08
21:12 UTC
Read the original article
Hit count: 387
How Do I profile my functions using DrScheme?
(require profile)
(define (factorial n)
(cond
((= n 1) 1)
(else (* n (factorial (- n 1))))))
(profile factorial)
The above code returns
Profiling results
-----------------
Total cpu time observed: 0ms (out of 0ms)
Number of samples taken: 0 (once every 0ms)
====================================
Caller
Idx Total Self Name+srcLocal%
ms(pct) ms(pct) Callee
====================================
>
I tried: - (profile (factorial 100))
- (profile factorial) (factorial 100)
But it gives me the same result.
What am I doing wrong?
© Stack Overflow or respective owner