Handbook
Glossary
add-timing ( word -- )
Factor handbook
»
Developer tools
»
Word annotations
Prev:
reset-word-timing ( -- )
Next:
word-timing. ( -- )
Vocabulary
tools
.
annotations
Inputs
word
a
word
Outputs
None
Word description
Adds timing code to a word, which records its total running time, including that of words it calls, on every invocation.
See also
Timing code and collecting statistics
,
Sampling profiler
Definition
USING:
kernel
tools.annotations.private
;
IN:
tools.annotations
:
add-timing
( word -- )
dup
[
(add-timing)
]
curry
annotate
;