tracing the time down to assembly
This commit is contained in:
parent
e5d69fbfc1
commit
086f6c283f
|
@ -252,8 +252,7 @@ MACHINE.modules[~s] =
|
|||
(assemble/write-invoke stmts temporary-output-port)
|
||||
(fprintf temporary-output-port "(MACHINE, function() { ")])
|
||||
(define stop-time (current-inexact-milliseconds))
|
||||
(displayln (source-name src))
|
||||
(printf "Took: ~s milliseconds\n" (- stop-time start-time))
|
||||
(printf " assembly: ~s milliseconds\n" (- stop-time start-time))
|
||||
(displayln (bytes-length (get-output-bytes temporary-output-port)))
|
||||
(write-bytes (get-output-bytes temporary-output-port) op)
|
||||
(void))
|
||||
|
|
|
@ -177,8 +177,11 @@
|
|||
(get-ast-and-statements this-source)])
|
||||
(log-debug (format "visiting ~a\n" (source-name this-source)))
|
||||
(on-module-statements this-source ast stmts)
|
||||
(loop (append (map wrap-source (collect-new-dependencies this-source ast))
|
||||
(rest sources)))
|
||||
(define start-time (current-inexact-milliseconds))
|
||||
(define new-dependencies (map wrap-source (collect-new-dependencies this-source ast)))
|
||||
(define end-time (current-inexact-milliseconds))
|
||||
(printf " computing dependencies: ~a milliseconds\n" (- end-time start-time))
|
||||
(loop (append new-dependencies (rest sources)))
|
||||
(after-module-statements this-source ast stmts))])))
|
||||
|
||||
(follow-dependencies (map wrap-source sources))])))
|
||||
|
|
Loading…
Reference in New Issue
Block a user