> ## 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.

# memory • AI Agents Framework

> memory: Context manager for memory profiling.

# 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.

Context manager for memory profiling.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def memory(name: str) -> Any
```

## Parameters

**name** `str` *required*

No description available.

### Returns

**Returns** `Any`

The result of the operation.

## Uses

* `memory`
* `get_profiler`

## Used By

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

## Source

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

***

## 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.