Record Memory • AI Agents Framework

record_memory: Record memory usage.

record_memory

Method

</div>

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

Record memory usage.

Signature

python
def record_memory(name: str, current_kb: float, peak_kb: float) -> None

Parameters

ParamField str

No description available.

ParamField float

No description available.

ParamField float

No description available.

Uses

  • cls.is_enabled
  • MemoryRecord

Used By

Source

View on GitHub

praisonai/profiler.py at line 554


Related Documentation