> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Record Memory • AI Agents Framework

> record_memory: Record memory usage.

# record\_memory

Method

> This is a method of the [**ProfilerCompat**](https://praison.ai/docs/sdk/reference/praisonai/classes/ProfilerCompat.md) class in the [**profiler**](https://praison.ai/docs/sdk/reference/praisonai/modules/profiler.md) module.

Record memory usage.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def record_memory(name: str, current_kb: float, peak_kb: float) -> None
```

## Parameters

**name** `str` *required*

No description available.

**current\_kb** `float` *required*

No description available.

**peak\_kb** `float` *required*

No description available.

## Uses

* `record_memory`
* `get_profiler`

## Used By

* [`ProfilerCompat.record_memory`](../functions/ProfilerCompat-record_memory)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/profiler.py#L932)
>
> `praisonai/profiler.py` at line 932

***

## Related Documentation

> [card] [Memory Concept](https://praison.ai/docs/docs/concepts/memory)

> [card] [Memory Overview](https://praison.ai/docs/docs/memory/overview)

> [card] [Memory Configuration](https://praison.ai/docs/docs/configuration/memory-config)

> [card] [Session Resume](https://praison.ai/docs/docs/memory/session-resume)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.