fixed "where" bug in sprofiler

sine no longer pauses

svn: r1616
This commit is contained in:
Greg Cooper 2005-12-14 23:51:42 +00:00
parent 598beb8021
commit 5f88a3d5f3
2 changed files with 5 additions and 2 deletions

View File

@ -22,5 +22,5 @@
[sin-x (+ 200 (* 100 sin-x))])
(history-b (changes (make-cute-circle x sin-x)) 50))))
(set-running! (even? seconds))
(set-running! #t)

View File

@ -10,7 +10,7 @@
(define pings (make-hash 'equal))
((changes where)
((changes (where))
. ==> . (match-lambda [(line function context rest ...)
(hash-table-increment! pings (list function context))]
[_ (void)]))
@ -19,3 +19,6 @@
(set-running-e! (merge-e (clicks . -=> . false)
(clicks . -=> . true)))
(define (show-profile)
(quicksort (hash-pairs pings) (lambda (a b) (> (second a) (second b)))))