top-down* ( profile-data -- tree )
Factor documentation > Factor handbook > Developer tools > Sampling profiler
Prev:most-recent-profile-data ( -- profile-data )
Next:top-down-max-depth* ( max-depth profile-data -- tree )


Vocabulary
tools.profiler.sampling

Inputs and outputs
profile-dataraw profile data
treea profile report


Word description
Generates a top-down tree profile from the profile results in profile-data. The output tree can be printed with the profile. word.

See also
cross-section*, flat*, top-down-max-depth*, most-recent-profile-data

Definition
USING: kernel layouts ;

IN: tools.profiler.sampling

: top-down* ( profile-data -- tree )
[ most-positive-fixnum ] dip top-down-max-depth* ;