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?