Context manager for profiling a block of code.
This is a method of the Profiler class in the profiler module.
def block(name: str, category: str) -> Any