memory • AI Agents Framework

memory: Context manager for profiling memory usage.

memory

Method

</div>

This is a method of the Profiler class in the profiler module.

Context manager for profiling memory usage.

Signature

python
def memory(name: str) -> Any

Parameters

ParamField str

No description available.

Returns

ResponseField 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


Related Documentation