foreign-time* ( profile-data -- n )


Vocabulary
tools.profiler.sampling

Inputs and outputs
profile-dataraw profile data
na duration


Word description
Returns the total time spent in non-Factor code (such as the Factor VM, or FFI calls) from the given profile-data.

Definition
USING: sequences ;

IN: tools.profiler.sampling

: foreign-time* ( profile-data -- n )
[ foreign-sample-count ] map-sum samples>time ;