add-timing ( word -- )
Factor handbook » Developer tools » Word annotations

Prev:reset-word-timing ( -- )
Next:word-timing. ( -- )


Vocabulary
tools.annotations

Inputs
worda word


Outputs
None

Word description
Adds timing code to a word, recording its invocation count and total running time, including that of words it calls. Recursive invocations in the same thread are counted individually, but their overlapping running time is recorded only once. Invocations that throw errors are also counted and timed.

See also
Timing code and collecting statistics, Sampling profiler

Definition