spdl.pipeline.ProfileHook¶
- class ProfileHook[source]¶
A hook object that can be used to execute custom code before and after each stage and pipeline profiling.
Methods
A context manager that is executed at the beginning and the end of
profile_pipeline()
function.stage_profile_hook
(stage, concurrency)A context manager that is executed around each stage profiling.
- abstract pipeline_profile_hook() Iterator[None] [source]¶
A context manager that is executed at the beginning and the end of
profile_pipeline()
function.