Memory Snapshot • AI Agents Framework

memory_snapshot: Take a memory snapshot.

memory_snapshot

Method

</div>

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

Take a memory snapshot.

Signature

python
def memory_snapshot() -> Dict[str, float]

Returns

ResponseField Dict[str, float]

The result of the operation.

Uses

  • tracemalloc.start
  • tracemalloc.get_traced_memory
  • tracemalloc.stop

Source

View on GitHub

praisonai/profiler.py at line 585


Related Documentation