add an errortrace
benchmarking mode
This commit is contained in:
parent
bfb14637a6
commit
3d484cf560
|
@ -48,6 +48,19 @@ exec racket -qu "$0" ${1+"$@"}
|
|||
(compile-file name
|
||||
"compiled/current-bm_rkt.zo"))))
|
||||
|
||||
(define (mk-errortrace bm)
|
||||
(unless (directory-exists? "compiled")
|
||||
(make-directory "compiled"))
|
||||
(parameterize ([current-namespace (make-base-namespace)]
|
||||
[read-accept-reader #t]
|
||||
[current-compile (current-compile)]
|
||||
[error-display-handler (error-display-handler)]
|
||||
[use-compiled-file-paths (use-compiled-file-paths)])
|
||||
(dynamic-require 'errortrace #f)
|
||||
(let ([name (format "~a.rkt" bm)])
|
||||
(compile-file name
|
||||
"compiled/current-bm_rkt.zo"))))
|
||||
|
||||
(define (compiled-path bm)
|
||||
"current-bm.rkt")
|
||||
|
||||
|
@ -395,6 +408,14 @@ exec racket -qu "$0" ${1+"$@"}
|
|||
extract-racket-times
|
||||
clean-up-zo
|
||||
racket-skip-progs)
|
||||
(make-impl 'errortrace
|
||||
void
|
||||
mk-errortrace
|
||||
(lambda (bm)
|
||||
(system (format "racket -l errortrace -u ~a" (compiled-path bm))))
|
||||
extract-racket-times
|
||||
clean-up-zo
|
||||
racket-skip-progs)
|
||||
(make-impl 'plt-r5rs
|
||||
void
|
||||
mk-plt-r5rs
|
||||
|
|
Loading…
Reference in New Issue
Block a user