added clear-profile-results

svn: r4494
This commit is contained in:
Eli Barzilay 2006-10-05 18:45:26 +00:00
parent 6873a49260
commit 9127ed7245
2 changed files with 10 additions and 0 deletions

View File

@ -33,6 +33,14 @@
(define profile-info (make-hash-table))
(define (clear-profile-results)
(hash-table-for-each profile-info
(lambda (k v)
(set-box! (car v) #f)
(set-car! (cdr v) 0)
(set-car! (cddr v) 0)
(set-car! (cdr (cdddr v)) null))))
(define (initialize-profile-point key name expr)
(hash-table-put! profile-info key
(list (box #f) 0 0 (and name (syntax-e name)) expr null)))
@ -340,6 +348,7 @@
profile-paths-enabled
get-profile-results
output-profile-results
clear-profile-results
execute-counts-enabled
get-execute-counts

View File

@ -15,6 +15,7 @@
profile-paths-enabled
get-profile-results
output-profile-results
clear-profile-results
execute-counts-enabled
get-execute-counts