Handbook
Glossary
measure-compilation ( word/quot -- metrics )
Vocabulary
compiler
.
cfg
.
metrics
Inputs
word/quot
an
object
Outputs
metrics
an
object
Definition
USING:
compiler.cfg.debugger
compiler.cfg.register-allocation
namespaces
prettyprint
sequences
tools.time
;
IN:
compiler.cfg.metrics
::
measure-compilation
( word/quot -- metrics )
[
[
word/quot
test-builder
]
benchmark
:>
( cfgs ns ) cfgs
[
measure-cfg
]
map
:>
procedures word/quot
unparse
:>
input
current-register-allocator
unparse
:>
allocator
H{
{
"input"
input
}
{
"procedures"
procedures
}
{
"allocator"
allocator
}
{
"frontend-nanoseconds"
ns
}
}
]
with-scope
;