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