Profiling¶
Profile
enables the measurement of the time
an object spends inside certain parts of the pipeline.
-
class
morphocut.profile.
Profile
(name)[source]¶ Profile pipeline nodes.
The average lead time of objects in this pipeline context is measured and printed after the end of processing.
- Parameters
name (str) – The name of this profiling operation.
Example
with Pipeline() as pipeline: # Un-profiled processing ... with Profile("some name"): # Profiled processing ... pipeline.run()