word-timing. ( -- )
Factor documentation > Factor handbook > Developer tools > Word annotations
Prev:add-timing ( word -- )
Next:annotate ( word quot -- )


Vocabulary
tools.annotations

Word description
Prints the word timing table.

Definition
USING: arrays assocs kernel math namespaces prettyprint
sequences sorting ;

IN: tools.annotations

: word-timing. ( -- )
word-timing get >alist [ second first ] sort-with
[ first2 first2 [ 1000000000 /f ] dip 3array ] map
simple-table. ;