* swapped the message and the procedure for time-it.

This commit is contained in:
Abdulaziz Ghuloum 2007-05-07 02:32:39 -04:00
parent 4e5d1439e0
commit 24f07a7d66
3 changed files with 6 additions and 8 deletions

Binary file not shown.

View File

@ -70,8 +70,8 @@
(define time-it (define time-it
(case-lambda (case-lambda
[(proc) [(proc)
(time-it proc #f)] (time-it #f proc)]
[(proc message) [(message proc)
(unless (procedure? proc) (unless (procedure? proc)
(error 'time-it "~s is not a procedure" proc)) (error 'time-it "~s is not a procedure" proc))
(let* ([t0 (mk-stats)] (let* ([t0 (mk-stats)]

View File

@ -685,12 +685,11 @@
(verify-map) (verify-map)
(time-it (time-it "the entire bootstrap process"
(lambda () (lambda ()
(let-values ([(core* locs) (let-values ([(core* locs)
(time-it (time-it "macro expansion"
(lambda () (expand-all scheme-library-files)) (lambda () (expand-all scheme-library-files)))])
"macro expansion")])
(parameterize ([current-primitive-locations (parameterize ([current-primitive-locations
(lambda (x) (lambda (x)
(cond (cond
@ -701,8 +700,7 @@
(for-each (for-each
(lambda (x) (compile-core-expr-to-port x p)) (lambda (x) (compile-core-expr-to-port x p))
core*) core*)
(close-output-port p))))) (close-output-port p))))))
"the entire bootstrap process")
(printf "Happy Happy Joy Joy\n")) (printf "Happy Happy Joy Joy\n"))