Handbook
Glossary
dispatch-stats. ( -- )
Factor handbook
»
Developer tools
»
Timing code and collecting statistics
Prev:
time ( quot -- )
Next:
gc-events. ( -- )
Vocabulary
tools
.
dispatch
Word description
Prints method dispatch statistics from the last call to
collect-dispatch-stats
.
Definition
USING:
accessors
namespaces
prettyprint
;
IN:
tools.dispatch
:
dispatch-stats.
( -- )
last-dispatch-stats
get
{
{
"Megamorphic hits"
[
megamorphic-cache-hits>>
]
}
{
"Megamorphic misses"
[
megamorphic-cache-misses>>
]
}
{
"Cold to monomorphic"
[
cold-call-to-ic-transitions>>
]
}
{
"Mono to polymorphic"
[
ic-to-pic-transitions>>
]
}
{
"Poly to megamorphic"
[
pic-to-mega-transitions>>
]
}
{
"Tag check count"
[
pic-tag-count>>
]
}
{
"Tuple check count"
[
pic-tuple-count>>
]
}
}
object-table.
;