Skip to main content

block

Method
This is a method of the Profiler class in the profiler module.
Context manager for profiling a block of code.

Signature

Parameters

str
required
No description available.
str
default:"'block'"
No description available.

Returns

Any
The result of the operation.

Uses

  • time.time
  • cls.record_timing
  • cls.record_flow

Source

View on GitHub

praisonai/profiler.py at line 337