Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
profile ( quot -- )
Factor documentation
>
Factor handbook
>
Developer tools
>
Sampling profiler
Next:
total-time ( -- n )
Vocabulary
tools.profiler.sampling
Inputs and outputs
quot
a
quotation
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
profiling
[
0
profiling
(get-samples)
raw-profile-data
set-global
]
[
]
cleanup
;
inline