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
|
(compile-file name
|
||||||
"compiled/current-bm_rkt.zo"))))
|
"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)
|
(define (compiled-path bm)
|
||||||
"current-bm.rkt")
|
"current-bm.rkt")
|
||||||
|
|
||||||
|
@ -395,6 +408,14 @@ exec racket -qu "$0" ${1+"$@"}
|
||||||
extract-racket-times
|
extract-racket-times
|
||||||
clean-up-zo
|
clean-up-zo
|
||||||
racket-skip-progs)
|
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
|
(make-impl 'plt-r5rs
|
||||||
void
|
void
|
||||||
mk-plt-r5rs
|
mk-plt-r5rs
|
||||||
|
|
Loading…
Reference in New Issue
Block a user