still annotating and trying to figure out where the time is going
This commit is contained in:
parent
355d477b90
commit
794b3a5cd7
|
@ -244,14 +244,16 @@ MACHINE.modules[~s] =
|
||||||
|
|
||||||
(fprintf op "\n// ** Visiting ~a\n" (source-name src))
|
(fprintf op "\n// ** Visiting ~a\n" (source-name src))
|
||||||
(define temporary-output-port (open-output-bytes))
|
(define temporary-output-port (open-output-bytes))
|
||||||
(time
|
(define start-time (current-inexact-milliseconds))
|
||||||
(cond
|
(cond
|
||||||
[(UninterpretedSource? src)
|
[(UninterpretedSource? src)
|
||||||
(fprintf temporary-output-port "~a" (UninterpretedSource-datum src))]
|
(fprintf temporary-output-port "~a" (UninterpretedSource-datum src))]
|
||||||
[else
|
[else
|
||||||
(assemble/write-invoke stmts temporary-output-port)
|
(assemble/write-invoke stmts temporary-output-port)
|
||||||
(fprintf temporary-output-port "(MACHINE, function() { ")]))
|
(fprintf temporary-output-port "(MACHINE, function() { ")])
|
||||||
|
(define stop-time (current-inexact-milliseconds))
|
||||||
(displayln (source-name src))
|
(displayln (source-name src))
|
||||||
|
(printf "Took: ~s milliseconds\n" (- stop-time start-time))
|
||||||
(displayln (bytes-length (get-output-bytes temporary-output-port)))
|
(displayln (bytes-length (get-output-bytes temporary-output-port)))
|
||||||
(write-bytes (get-output-bytes temporary-output-port) op)
|
(write-bytes (get-output-bytes temporary-output-port) op)
|
||||||
(void))
|
(void))
|
||||||
|
|
|
@ -85,6 +85,7 @@
|
||||||
|
|
||||||
(define (build-html-and-javascript f)
|
(define (build-html-and-javascript f)
|
||||||
(turn-on-logger!)
|
(turn-on-logger!)
|
||||||
|
(define start-time (current-inexact-milliseconds))
|
||||||
(let-values ([(base filename dir?)
|
(let-values ([(base filename dir?)
|
||||||
(split-path f)])
|
(split-path f)])
|
||||||
(let ([output-js-filename (build-path
|
(let ([output-js-filename (build-path
|
||||||
|
@ -139,6 +140,9 @@
|
||||||
(lambda (op)
|
(lambda (op)
|
||||||
(display (get-html-template output-js-filename) op))
|
(display (get-html-template output-js-filename) op))
|
||||||
#:exists 'replace)
|
#:exists 'replace)
|
||||||
|
(define stop-time (current-inexact-milliseconds))
|
||||||
|
|
||||||
|
(printf "Time taken: ~a milliseconds\n" (- stop-time start-time))
|
||||||
))))
|
))))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user