Skip to main content

memory

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

Signature

def memory(name: str) -> Any

Parameters

name
str
required
No description available.

Returns

Returns
Any
The result of the operation.

Uses

  • tracemalloc.start
  • tracemalloc.get_traced_memory
  • tracemalloc.stop
  • cls.record_memory

Source

View on GitHub

praisonai/profiler.py at line 574