Handbook
Glossary
profile ( quot -- )
Factor handbook
»
Developer tools
»
Sampling profiler
Next:
total-time ( -- n )
Vocabulary
tools
.
profiler
.
sampling
Inputs
quot
a
quotation
Outputs
None
Word description
Executes
quot
with the sampling profiler enabled. The results of the profile can subsequently be reported with words such as
top-down
and
flat
, or the raw data can be saved and inspected with
most-recent-profile-data
.
See also
cross-section
,
flat
,
top-down
,
top-down-max-depth
,
profile.
Definition
USING:
continuations
namespaces
tools.profiler.sampling.private
;
IN:
tools.profiler.sampling
:
profile
( quot -- )
samples-per-second
get-global
set-profiling
[
0
set-profiling
get-samples
raw-profile-data
set-global
]
finally
;
inline