Take a memory snapshot.
This is a method of the Profiler class in the profiler module.
def memory_snapshot() -> Dict[str, float]