Use trusted sandbox for Performance Report.

Solves permission problems.
This commit is contained in:
Vincent St-Amour 2012-02-09 14:46:18 -05:00
parent 8080669dd9
commit 0452a5983f

View File

@ -59,11 +59,7 @@
[else ; different file
#f]))
(define log '())
(define sandbox
(parameterize ([sandbox-make-code-inspector current-code-inspector]
[sandbox-eval-limits #f])
(make-evaluator 'racket/base)))
(call-in-sandbox-context sandbox
(call-with-trusted-sandbox-configuration
(lambda ()
(with-intercepted-tr-logging
(lambda (l)